Chapter 7
|
Get functions 87
Notes
• If the current calculation is stored and you specify its context, this function will be
evaluated based on that context; otherwise, it will be evaluated based on the context
of the current window.
• See FileMaker Pro help for information about running scripts in client/server and
peer-to-peer environments.
Example
Returns Fred Jones when Fred Jones is the registered name of the host computer in use.
Get(LastError)
Format
Get(LastError)
Parameter
None
Data type returned
number
Description
Returns a number representing the error, if any, in the execution of the most recently
executed script step. Use this function to detect and control the outcome of errors.
Notes
• Mac OS: In FileMaker Pro, if an error occurs while performing an AppleScript from
ScriptMaker
™, the AppleScript error code will be returned.
• In FileMaker Pro, if an error occurs while performing a SQL query, a SQLSTATE error
will be returned by ODBC.
• See FileMaker Pro help for information about running scripts
in client/server and
peer-to-peer environments.
Tip To create a script that responds to errors without displaying alerts, use this function
with the Set Error Capture script step with the On option.
Examples
Returns 0 when the most recent script step executed successfully.
Returns 401 when no records are found after the Perform Find script step has been
executed.
Commentaires sur ces manuels