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.

How to disable error message with a Find has 0 results

Featured Replies

  • Newbies

Hi forum,

I have been working on a script which performs a find, however sometimes there aren't always records to find so an error message is displayed.

(the one that says "modify find or cancel")

is there a way to disable this error message

Yes, start your script with Set Error Capture On.

This suppresses FM messages, but now you need to deal with the error.

My typical Find script structure (which is on the forums somewhere) is:

Enter Find Mode

Perform Find

If ( Get (Foundcount) = 0 )

Show Dialog "No Records Found"

Show All

End If

Found the link http://fmforums.com/forum/showpost.php?post/334547/

Edited by Guest

Hi Barbara,

I think they are performing a manual find?

If so, I don't think you can do anything with that message.

Lee

I have been working on a script which performs a find

Barbara's given you good advice.

Question is...what do you want to happen if no records are found?

  • Author
  • Newbies

thanks guys, the error capture on and if statement worked well

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.