RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.Rollback Method

Cancels all updates, insertions, and deletions for the current transaction and ends the transaction.

Pascal
procedure Rollback;
C++
__fastcall Rollback();

Call Rollback to cancel all updates, insertions, and deletions for the current transaction and to end the transaction. The current transaction is the last transaction started by calling StartTransaction.

Note: Before calling Rollback, an application may check the status of the InTransaction property. If an application calls Rollback and there is no current transaction, an exception is raised.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!