Script Steps Reference

Table Of Contents
Control script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 33
Set Error Capture
Purpose
Suppresses or enables normal FileMaker Pro alert messages.
Format
Set Error Capture [<on or off>]
Options
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 File
dialog box.
Off re-enables the alert messages.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
Use this script step to handle errors in a manner consistent with the functions the script performs. By
using the Get(LastError) function immediately after a script step, you can verify that the step was
performed properly.
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.
Notes
Use Get (LastError) immediately after the script step you intend to test; a successful
intervening step may clear the error code you were intending to capture.
When Set Error Capture is used in a script that contains a sub-script, errors from the sub-
script are captured as well.
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script Yes
FileMaker Go Yes
Custom Web Publishing Yes
FileMaker WebDirect Yes
Runtime solution Yes