Get(ScriptParameter)

 <  Day Day Up  >  

Get(ScriptParameter)

Category: Get

Syntax: Get ( ScriptParameter )

Parameters: none

Description: Retrieves the parameter that was passed to the current script.

Examples:

In this example, the Navigate script is called, with the parameter "West" :

 

 Perform Script ["Navigate"; "West"] 

Within the Navigate script, the script parameter value ( "West" ) is assigned to a field ( "Direction" ) through the use of the following script step:

 

 Set Field ["Location::Direction"; Get (ScriptParameter)] 

Direction now equals West .

Comments:

The value of a script parameter can be retrieved anywhere within the script, regardless of subscript calls. Script parameters cannot be altered during execution of a script.

Subscripts do not inherit the script parameter of the calling script. Rather, they can be passed parameters of their own that exist only for the duration of the subscript. If you want a subscript to inherit a script parameter, pass Get (ScriptParameter) as the subscript's parameter.

Only one value can be passed as a script parameter, but that value can contain a delimited list, thus allowing multiple values to be passed.

For more information on how to pass and parse multi-valued script parameters, see Chapter 15, "Advanced Scripting," p. 421 .


Script parameters can be specified when scripts are performed via buttons and via subscripts, but not when scripts are called manually from the Scripts menu or via a startup or shutdown script.

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net