FireDAC.Comp.DataSet.TFDDataSet.CancelUpdates

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDDataSet

Delphi

procedure CancelUpdates;

C++

void __fastcall CancelUpdates();

Description

Removes all records from the change log and restores the dataset rows to their prior editing state.

Use CancelUpdates to remove all records from the change log, when the CachedUpdates property of the dataset is set to True. Also, the dataset records are restored to the state they were in at the moment when the dataset 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.

See Also