Contents Index Accessing schema information Synchronization

UltraLite for MobileVB User's Guide
  Understanding UltraLite for MobileVB Development

Error handling


You can use the standard MobileVB error-handling features to handle errors. When an UltraLite object is the source of an error, the Err object is assigned a ULSQLCode number. ULSQLCode errors are negative numbers indicating the particular kind of error. The ULSQLCode enum provides a set of descriptive constants associated with these values.

For more information, see SQLCode.

To make use of type completion in the Visual Basic environment, you may want to create an error handling function such as the following:

Public Function GetError() As ULSQLCode
    GetError = Err.Number
End Function

You can then easily access UltraLite errors using the GetError function.


Contents Index Accessing schema information Synchronization