5. Working with a Database : Handling Database Errors : How You Can Use BitmapObject and StringObject Methods
 
Share this page                  
How You Can Use BitmapObject and StringObject Methods
The BitmapObject and StringObject system class methods that access the database (InsertIntoDB, DeleteFromDB, and UpdateInDB) indicate errors in two ways:
The return value is set to a nonzero error code if the method does not execute successfully.
The DBSessionObject attributes ErrorNumber and DBMSError are set to the appropriate error number if a DBMS error occurs during the execution of the method.