Filemaker Pro 8.5 Educational Maintenance T3 TJ083LL/A User Manual

Product codes
TJ083LL/A
Page of 238
Chapter 7
  
|
  Get functions     87
Notes
If the current calculation is stored and you specify it
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 
 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 
. Use this function to detect and control the outcome of errors.
Notes 
Mac OS: In FileMaker Pro, if an error occurs while performing an 
 from 
™, the AppleScript error code will be returned.
In FileMaker Pro, if an error occurs while performing a 
 query, a SQLSTATE error 
will be returned by 
See FileMaker Pro help for information about running 
 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.