4. System Classes : StringObject Class : UpdateInDB Method
 
Share this page                  
UpdateInDB Method
The UpdateInDB method replaces a string object in the database.
This method has the following syntax:
integer = StringObject.UpdateInDB()
OpenROAD updates the string object pointed at by the current value of the DBHandle attribute.
Because the UpdateInDB 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 statement 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 (see Error Codes).
Do not call this method with autocommit turned on.