In normal operation, UltraLite for AppForge can throw errors. Errors are expressed as SQLCODE values, negative numbers indicating the particular kind of error.
For a list of error codes thrown by UltraLite for AppForge, see ULSQLCode enumeration.
You can use the standard MobileVB or Crossfire error-handling features to handle errors. When an UltraLite object is the source of an error, the Err object is assigned a ULSQLCode number. ULSQLCodes are negative numbers indicating the particular kind of error. The ULSQLCode enumeration provides a set of descriptive constants associated with these values.
See ULSQLCode enumeration.
To make use of type completion in the MobileVB environment, you may want to create an error handling function such as the following:
'MobileVB using VB6 Public Function GetError() As ULSQLCode GetError = Err.Number End Function
You can then easily access UltraLite errors using the GetError function.