DeleteFromDB Method
The DeleteFromDB method deletes a bitmap from the database.
This method has the following syntax:
integer = BitmapObject.DeleteFromDB()
OpenROAD deletes the bitmap specified by the current DBHandle attribute setting.
Because the DeleteFromDB method interacts directly with the database, it either initiates a transaction or becomes part of any open transaction. The work that it does is not permanent until the transaction is committed. By default, you must issue a commit statement explicitly. For more information about transaction management and the DeleteFromDB method, see the Programming Guide.
This method returns ER_OK if successful, or a non-zero database error code if unsuccessful. Descriptions of system constant values and their numeric equivalents are listed in
Error Codes (see
Error Codes).
This method does not destroy the in-memory contents of the bitmap object; it only deletes the version stored in the database at the location specified by the DBHandle attribute.
Note: Do not use this method with autocommit turned on, because the multiple database statements involved in saving a bitmap object can result in incorrect values.