Jump to content
Sign in to follow this  
joegez

Bypassing "found no records" dialog box

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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).]

Share this post


Link to post
Share on other sites

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).]

Share this post


Link to post
Share on other sites

Where can I find a list of error numbers such as the one you show (401).

FileMaker Version: 6

Platform: Mac OS X Panther

Share this post


Link to post
Share on other sites

Check the Status(CurrentError) description in the Manual or application Help.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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