Language Reference Guide : System Classes : StringObject Class : DeleteFromDB Method
 
Share this page          
DeleteFromDB Method
The DeleteFromDB method deletes the string object from the database.
This method has the following syntax:
integer = StringObject.DeleteFromDB()
OpenROAD deletes the string object pointed at by the current value of the DBHandle attribute.
Because the DeleteFromDB method interacts directly with the database, it either initiates a transaction or becomes part of any ongoing transaction. The work that it does is not permanent until a commit statement executes to commit the transaction. By default, you must issue a commit explicitly.
For more information about transaction management, see the Programming Guide.
This method returns ER_OK if it is successful or other non-zero database error codes if it is not. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.
Do not call this method with autocommit turned on.