Get(ScriptResult)

Category: Get

Syntax: Get ( ScriptResult )

Parameters: None

Data type returned: Text, Number, Date, Time, Timestamp, Container

Description:

This function allows subscripts to pass results to their calling ("parent") script. Get(ScriptResult) returns whatever value was set by the Exit Script script step.

Note that once all scripts complete execution, no value is stored and Get(ScriptResult) will return a null (or blank) value.

Examples:

Consider a subscript that checks for duplicate records within a found set and passes a count of duplicates as a script result. Any number of scripts within a given solution can then call that subscript and perform a check like so:

 Case ( Get(ScriptResult) > 1; "duplicates exist"; "no duplicates" )







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

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