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.

Find multiple words [OR]

Featured Replies

I want to have some way of finding any of a group of words in a field. Creating multiple finds creating Find > New Find > New Find etc is cumbersome if I make a mistake or need to update it.

Ideally it would be some sort of string of words with a loop script.

BTW I'm using version 7 and it doesn't seem to have setfield as a function, even though it mentions setfield in the help menu, which is confusing. I saw an example using setfield but it didn't work - just said couldn't find the table "setfield".

You would need to create a new request for each time you are OR'ing ... and you're wrong Set Field[ is manditory knowledge when scripting, since inserts or pastes are dependent of the presence of the field in the actual layout.

For your loopings, which is the way I would choose too, could a global field store the values you wish to search for pilcrow delimited - since you're on fm7 must the scripting utilise recursion in the absence of $variables.

The matter can be done as shown above!

--sd

ORSearch.jpg

1. GetValue() is not available in version 7.

2. I believe this could be simpler if using:

MiddleWords ( gSearchPhrase ; Get (RecordNumber) ; 1 )

in a loop.

1) I did for a short moment think of it but forgot to check, thanks for catching it!

2) True! ...I merely gave various options to choose from, to display a method not too dependent on reading in fields ... if it really gives a snappier performance should be unsaid, but $variables seems to give this.

--sd

You could make it faster by loading the global into a script parameter - but really, what's the rush?

Well just to "air" that it could be a consideration occasionally!

But as such just socratian noise! My take here is, if people just need solutions should they learn to delegate the task at hand, but if they want to learn their ways with the tool will the ambiguity be beneficial to this process.

--sd

  • Author

Thanks in for your replies - I'll give it a go!

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.