Jump 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.

Featured Replies

I have a field that is for distances. The data gets imported from a non FMP database. The other DB puts Mil at the end (for miles) so 100 miles shows up as 100 Mil (space and Mil - 4 characters). I need to lop off the Mil at the end.

I was going to use a script, and use the set field, and I was thinking it would be something like Left (text) or Right (text) kind of thing, but neither seems to fit, because I could have any number of characters before the Mil (1 mile or 1000 miles)

Advanced skill level?

Script pseudo code

show all records

goto first record

set field [your miles field;

Substitute ( your miles field; your miles field - RightWords ( your miles field; 1 ) )]

Loop

goto next record, exit after last

set field [your miles field;

Substitute ( your miles field; your miles field - RightWords ( your miles field; 1 ) )]

end loop

I would prefer to use a simple Substitute.

Show all records than put the cursor into your "distance" field.

From menu Record make a susbstitute with this calculation:

GetAsNumber ( Self )

  • Author

Thanks for the replys

Advanced skill level?

Yes. Excuse me that I get hung up on something once in a while. That's why I didn't put expert.

Create an account or sign in to comment

Important Information

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

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.