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.

Way to calculate "contains"?

Featured Replies

In a given text field, is there a way to calculate the expression "if the field contains" (and similarly, "does not contain")?

IOW, if I had five name records:

John Smith

Mary Jones

John White

Peter Johnson

Jill Jackson

I want a calculated text field to generate a result based on whether (or not) the name record contains the word "john" (which would include John Smith, John White, and Peter Johnson).

Is there a way to do it?

The question is do you want this hard coded into your script or do you want the user to enter the data the field contains?

Hard Coded:

Enter Find Mode()

Set Field(yourfield;"John")

Perform Find()

User Enters:

create a global field g_yourfield

Show Custom Dialog(Enter data;G_yourfield[button; OK;Cancel])

If (get(LastMessageChoice)=2)

Exit Script

EndIf

Enter Find Mode()

Set Field(yourfield;g_yourfield)

Perform Find()

hth

**** My scripts almost always need some tweaking and I have not tried this in real time, but, the concept is there.

Check out the function called PatternCount().

  • 1 month later...

Pattern Count - Excellent suggestion. Thanks!

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.