Script Steps Reference
Table Of Contents
- Contents
- About script steps
- Script steps reference (alphabetical list)
- Control script steps
- Perform Script
- Pause/Resume Script
- Exit Script
- Halt Script
- If
- Else If
- Else
- End If
- Loop
- Exit Loop If
- End Loop
- Allow User Abort
- Set Error Capture
- Set Variable
- Install OnTimer Script
- Navigation script steps
- Go to Layout
- Go to Record/Request/Page
- Go to Related Record
- Go to Portal Row
- Go to Object
- Go to Field
- Go to Next Field
- Go to Previous Field
- Enter Browse Mode
- Enter Find Mode
- Enter Preview Mode
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Index
- Insert From Last Visited
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Object (Windows)
- Insert File
- Update Link (Windows)
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
FILEMAKER SCRIPT STEPS REFERENCE 27
Compatibility
This script step is also supported in web publishing and in a FileMaker Server scheduled script.
Originated in
FileMaker Pro 6.0 or earlier
Description
If a variable doesn’t exist, this script step will create one. A variable name has the same naming
restrictions as a field name.
Local and global variables can be created and used in calculations.
• A local variable can only be used in script steps in the currently executing script. The value
in a local variable is cleared when the script exits.
• A global variable can be used in a calculation or script anywhere in a file, for example, other
scripts or file paths. The value of a global variable is not cleared until the file is closed.
• Local and global variables (or even two local variables in different scripts) can have the
same name but they are treated as different variables and can store different values.
Examples
The following example sets a local variable.
Set Variable [$commission; Value:.05]
The following example sets a global variable.
Set Variable [$$commission; Value:.1]
The following example sets a global variable at a specified repetition number.
Set Variable [$$bonus[2]; Value:3 * 4]
Related topics
Script steps reference (alphabetical list)
Contents
Install OnTimer Script
Purpose
Runs a specified script at the specified interval. Installs a single timer per window. After the specified
interval has passed, the next time the application is idle, runs the specified script.
Format
Install OnTimer Script [“<script>”; Interval: <number>]
Options
Click Specify to set the variable options:
• Specify script is the script that you want to run.
• Interval seconds is the value in seconds that the timer waits before running the script.