.NODE

Get(ScriptName)

Category: Get

Syntax: Get ( ScriptName )

Parameters: None

Data type returned: Text

Description:

Returns the name of the current script even if paused. When no script is running, Get (ScriptName) returns an empty string.

One use of Get (ScriptName) is to capture errors. In this example, the Log Error script takes the script name as a parameter.

 If [Get(LastError) <> 0]
 Perform Script ["Log Error"; Parameter: Get (ScriptName)]
 End If

Passing the current script's name as a script parameter can be useful anytime a subscript can be called by multiple scripts.

Examples:

Function

Results

Get(ScriptName)

Returns Calculate Invoice if the current script is Calculate Invoice.


: 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