Purpose
Assigns or returns whether the default error handling system should be used or disabled in the event that an ODBC error occurs.
Syntax
DBStatement.DisplayErrors [= TRUE | FALSE]
TRUE |
ODBC errors will be delivered via modal message box to the offending application. This is the default. |
FALSE |
The error message will be suppressed and normal application processing will continue, ignoring the error. Specific error information may then be returned by the DBError and DBErrorCode attributes, allowing you to build custom database error handlers. |
Example
Sub Main ()
Dim stmt as DBStatement
stmt.OpenStatement(Parks, dbDynamic, dbRowver)
stmt.DisplayErrors = FALSE
stmt.ExecuteSQL("Select * from parkinfo")
...
End sub
|