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

Bypassing "found no records" dialog box


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

Recommended Posts

Posted

I am performing a sequence of finds in a script. I expect that many of them will find no records. How can I prevent the "No records found" dialog box from coming up?

Posted

Aha! You have just discovered what that criptic script step "Set Error Capture (on)" is for. This script step toggles error capture which supresses the error dialog boxes. For instance:

Allow User Abort (off)

Set Error Capture (on)

Perform Find (restore)

If(Status(CurrentError) = 401)

#No Records Found

Exit Script

Else

#Records Found

Sort(restore,no dialog)

Go to Layout (List)

End If

-bd

[This message has been edited by LiveOak (edited January 30, 2001).]

Posted

Thanks

quote:

Originally posted by LiveOak:

Aha! You have just discovered what that criptic script step "Set Error Capture (on)" is for. This script step toggles error capture which supresses the error dialog boxes. For instance:

Allow User Abort (off)

Set Error Capture (on)

Perform Find (restore)

If(Status(CurrentError) = 401)

#No Records Found

Exit Script

Else

#Records Found

Sort(restore,no dialog)

Go to Layout (List)

End If

-bd

[This message has been edited by LiveOak (edited January 30, 2001).]

  • 3 years later...
Posted

Kennel:

Brian Dunning (briandunning.com) has an excellent FileMaker database for free download which contains loads of the FM error codes, as well as Windows and Mac error codes. It's somewhere on his website.

-Stanley

This topic is 7533 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.