Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

How to disable error message with a Find has 0 results


This topic is 5133 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted (edited)

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
Posted

Hi Barbara,

I think they are performing a manual find?

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

Lee

This topic is 5133 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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