Help

Table Of Contents
FILEMAKER PRO HELP 980
Related topics
Script steps reference (alphabetical list)
Script steps reference (category list)
Set Variable
Purpose
Sets a local or global variable to a specified value.
Format
Set Variable [<variable name> {[<repetition number>]}; Value:<value or
formula>]
Options
Click Specify to set the variable options:
Name is the name of the variable you want to create. Prefix the name with $ for a local
variable or $$ for a global variable. If no prefix is added, $ is automatically added to the
beginning of the name.
Value is the value the variable is set to. You can enter text or specify a calculation.
Repetition is the repetition (index) number of the variable you want to create. If no
repetition is specified, the default is 1.
Compatibility
Originated in
FileMaker Pro 8.0
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. For more information, see
About naming fields.
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.
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