Set Error Capture
•
|
On suppresses FileMaker Pro alert messages and some dialog boxes. If the error result is 100 or 803, then certain standard file dialog boxes are suppressed, such as the Open dialog box.
|
•
|
Off re-enables the alert messages.
|
Where the script step runs
|
|
|
|
FileMaker Server scheduled script
|
|
|
|
|
|
|
|
|
|
By using the Get (LastError) function with the control script steps, you can make sure your script performs correctly. When you decide to suppress alerts, it is important that you anticipate as many problems as possible and include clear instructions for what to do when an error condition is encountered.
Set Error Capture [On]Perform Find [Restore]
Set Field [Table1::gErrorCaptureField; Get (LastError)]
#The field Table1::gErrorCaptureField is a global text field
If[Table1::gErrorCaptureField <> 0]
Show Custom Dialog ["Couldn't find the record..."]
End If
Set Error Capture [Off]