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 need to write a script that loops through a string of words and creates a multiple OR find, but have stumbled on something irritating mad.gif" border="0 . The script (which is incomplete) goes something like this.

The field G_PLZ is a string containing Postal Codes, sparated by spaces e.g.(1234 6675 7785 12989)

Set Field [ G_Number1, 1 ]

Set Field [ G_Number2, WordCount(G_PLZ) ]

Enter Find Mode

Loop

Exit Loop If [ G_Number1>G_Number2 ]

Duplicate Record/Request

Set Field [ PLZ, MiddleWords(G_PLZ;G_Number1;1) ]

Set Field [ G_Number1, G_Number1 + 1 ]

End Loop

My question: where can I insert the Perform Find? The problem is that the loop increment counter becomes part of the find. I'd thought of switching layouts, but I believe Set Field doesn't need the field on a layout.

I know someone out there has a solution for me!

Tim

Try adding these steps to the end of what you already have:

Set Field (G_Number1, "")

Perform Find (no restore)

Also, did you intend to use "Duplicate record/request" or "New Record/Request" ? Either way it looks like you are getting a blank find request because when you enter find mode, there will be a blank request ready to be filled in. But, the first thing that happens in your loop is to make a duplicate. I think you need to move the "Exit loop if.." and "Duplicate record/request" steps to the end of the loop.

  • Author

Bob

Thanks. You know sometimes the answer is staring right out at you, but I couldn't see the wood from the trees. You are right, I wanted a NEW REQUEST, not duplicate).

Tim

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.