.NODE

Get(ScriptParameter)

Category: Get

Syntax: Get ( ScriptParameter )

Parameters: None

Data type returned: Text

Description:

Retrieves the parameter that was passed to a currently running script.

The value of a script parameter can be retrieved anywhere within a 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.

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.

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 variable ("$direction") through the use of the following script step:

 Set Variable ["$direction"; Get (ScriptParameter)]

$direction now equals West.


: FileMaker Specifications

FileMaker 8 Product Line

Specifications and Storage Limits

Field Types and Import/Export Formats

: Calculation Functions

Working with Calculations Primer

Calculation Signatures

Calculation Functions

: Custom Functions

Custom Functions Primer

Useful Custom Functions

: Script Steps

Scripting Primer

Script Step Reference

: Quick Reference

FileMaker Error Codes

FileMaker Keyboard Shortcuts

FileMaker Network Ports

FileMaker Server Command Line Reference

FileMaker XML Reference

: Other Resources

Where to Go for More Information

show all menu





FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352
Similar book on Amazon

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