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 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



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

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