January 30, 200124 yr 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?
January 30, 200124 yr 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).]
January 30, 200124 yr Author 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).]
April 8, 200421 yr Where can I find a list of error numbers such as the one you show (401). FileMaker Version: 6 Platform: Mac OS X Panther
April 8, 200421 yr 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
Create an account or sign in to comment