Sign in Join
FPDoc Onlineexperiment

TCustomBufDataset.RevertRecord procedure

Member of TCustomBufDatasetpublicIn unit BufDataset

Reverts the current record to its original (un-edited) values.

Declaration

pascal
procedure RevertRecord

Description

RevertRecord is a procedure used to revert changes in the current record to their original (un-edited) values. RevertRecord calls the CheckBrowseMode method to ensure that the dataset is Active, and to perform event notifications for a change in dataset state.

RevertRecord checks for an update buffer in the current record, and when found calls the CancelRecordUpdateBuffer method and removes the update buffer. The Resync method is called to refresh the records in the dataset.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.