RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBDEDataSet.CancelUpdates Method

Clears all pending cached updates from the cache and restores the dataset its prior state.

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

Call CancelUpdates to clear all pending cached updates from the cache and restore the dataset to the state it was in when the table was opened, cached updates were last enabled, or updates were last successfully applied to the database. 

When a dataset is closed, or the CachedUpdates property is set to false, CancelUpdates is called automatically.

Note: To undo changes to a single record, call RevertRecord.
 

 

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