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

  • Newbies

I have a field that contains text like 1.11/1.55, 1.66/.66, .66/.22, etc.. I need to put everything after the "/" in another field. Is there a way to do that? It's in a FM4.x db but I could put it in FM5.x if necessary. Thanks


Set Error Capture [On]

Loop

Set Field [ newfield, Right( textfield, Length(textfield) - Position( textfield, "/", 1, 1 ) ]

If [status(CurrentError)]

{what you want to happen if the record is in use}

End If

Go to Record/Request/Page [Exit after last, Next]

End Loop

I believe the script steps and function commands should be the same in 4.

  • Author
  • Newbies

Thanks. I'll try it tonight.

I should add an Else to the If step


Else

  Set Field [ textfield, Left( textfield, Position( textfield, "/", 1, 1 ) - 1 ) ]

End If

This will remove the / and following text from the original field, if the first Set Field was successful.

Haven't been in FM4 in a very long time, but in 5 or 6 it should be something like this:

Right(FieldName, Length(FieldName) - Position(FieldName, "/", 1, 1))

Phil

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.