Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how do I remove the last 7 characters?

Featured Replies

Thanks to everyone here I am getting my text calculation right

The last thing I don't understand is how to remove something extra

I ended up with a field in my address calculations that contains the

county name and the county code.

I want to eliminate the county code which is always 7 characters including the parenthesis in the front and back .

for example

Orleans (36073)

I want to remove the county code at the end only

I am not sure how to do this

Thanks

Dave

Left(textfield, Length(textfield)-Lenght(" (36073)")) or

Left(textfield, Length(textfield)-8)) or

Left(textfield, position(textfield," (",1,1)-1)) ....

Set up a script:

Set Field ["fieldname", Replace( fieldname, Position( fieldname, "(" , "(" , 1) , 7 , "")]

replace fieldname with the name of the field that contains the county name and county code of course!

This sets the field to the original contents of the field but replaces 7 didgits after the ( with "" (nothing)

If you want to do this for every record in your db just add find all to your script and set it in a loop to go to next field, exiting after last.

Eddy.

  • Author

Thank you Eddy and Christian.

This is great!!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.