FireDAC.Comp.DataSet.TFDDataSet.CancelUpdates

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CancelUpdates;

C++

void __fastcall CancelUpdates();

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

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