Filemaker Pro 8.5 Educational Maintenance T0 TJ087LL/A User Manual

Product codes
TJ087LL/A
Page of 238
94     FileMaker Functions Reference
Get(LastODBCError)
Format
Get(LastODBCError)
Parameter
None
Data type returned
text
Description
 error state (SQLSTATE), as published by ODBC 
standards, based on ISO/IEF standards. 
You can obtain the error state after an ODBC-related 
check for known errors and determine if you want to continue with the 
. The ODBC 
error state is cleared before the next ODBC-related script is executed. An error message, 
based on the error state returned by the ODBC driver, is displayed.
Notes
You can set the Set Error Capture state to “on” to suppress the error messages. You 
can also use Get(LastError) to get generic errors.
See FileMaker Pro help for information about running scripts in client/server and 
peer-to-peer environments.
Example
Returns 
[DataDirect][Macintosh ODBC Driver Manager] Data source name not found 
and no default driver specified (-1)
 when a data source name wasn’t found and the 
driver wasn’t specified.
Get(LayoutAccess)
Format
Get(LayoutAccess)
Parameter
None
Data type returned
number