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 Differences

Featured Replies

I'm just curious as to the difference between the two scripted find methods that I have found while browsing example files and demos in Filemaker Pro.

The first method I was exposed is:


Enter Find Mode []

Set Field "Fieldx" (Find Criteria)

Perform Find []





vs.





Perform Find [RESTORE]

Taking in to account a fresh found set, is there any difference between the two? The second method seems cleaner to me but it seems less used than the first method.

The main difference is that Set Field[] can set the field to the result of a calculation.

An added bonus is that the criteria are visible when inspecting the script.

  • Author

Are there any inherent disadvantages of using the first method over the second? Speed, etc...

Not that I am aware of. Well, three lines of code instead of one. But that's just cosmetics.

Not that advice from comment ever needs a second opinion, but I always use method 1, because the criteria is visible in the script.

There are often "elegant" methods to accomplish something in FM, that bury your logic. Great when built, but often impossible to troubleshoot six months later. I try to avoid them.

Until FM11, you couldn't use Perform Find with a $variable, you needed to use Set Field[]. So out of habit I've always done the former. But I have started using the latter recently.

For clarity, I comment what the Find criteria are, just like I do for Sorts.

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.