Get(ScriptName)

 <  Day Day Up  >  

Get(ScriptName)

Category: Get

Syntax: Get ( ScriptName )

Parameters: none

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

Examples:

 

 Get(ScriptName) 

returns Calculate Invoice if the current script is Calculate Invoice.

Comments:

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.

 <  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