Script Steps Reference

Table Of Contents
Chapter 2
|
Control script steps 27
The next script steps display a “welcome” screen for three seconds when the database is
opened, then continues to a data entry layout. The user cannot cancel this “welcome”
screen display.
Allow User Abort [Off]
Go to Layout ["Welcome"]
Pause/Resume Script [Duration (seconds): 3]
Go to Layout ["Data Entry"]
Allow User Abort[On]
The following script verifies that all records have client numbers entered, audibly notifies
the user when it finds a missing number, and waits so the user can enter the number. This
script runs when the database closes and can't be cancelled by the user.
Allow User Abort[Off]
Go to Record/Request/Page[First]
Loop
If[IsEmpty(Table1::clientNumberField)]
Speak["Client number is missing"]
Pause/Resume Script [Indefinitely]
End If
Go to Record/Request/Page [Exit after last; Next]
End Loop
Allow User Abort[On]
Set Error Capture
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 dialog box.
Off re-enables the alert messages. Set Error Capture suppresses normal
FileMaker Pro alert messages.
Web compatibility
This script step is not web-compatible.
Description
Sends error handling information to the Get(LastError) function after a FileMaker Pro
script is running. By checking the status of the Get (LastError) function immediately after
a script step, you can verify that the step was performed properly.