6. Error

[<<<] [>>>]

R = ODBC::Error(DB)

Use this function to get the txtual report of an error that has happened during an ODBC call. Calling ScriptBasic ODBC module functions raise error if the underlying ODBC calls report some error. This error can be captured using the ScriptBasic ON ERROR GOTO function. The error handling routine can call this function to get the text of the error as reported by the ODBC driver.

The return value is the text of the error.

The underlying ODBC function this function calls is SQLError.


[<<<] [>>>]