Skip to content

TCustomBufDataset.ChangeCount

Number of pending changes for the dataset.

Declaration

Source position: bufdataset.pas line 820

public property ChangeCount: Integer;

Description

ChangeCount is a read-only Integer property that indicates the number of pending changes in the update buffers allocated for the dataset. Update buffers are maintained in an internal TRecordsUpdateBuffer member when methods that add, delete, or modify record data are called.

ChangeCount can be used in an application to determine if ApplyUpdates, CancelUpdates, or RevertRecord should be called prior to closing the dataset.

See also

Name Description
TCustomBufDataset.ApplyUpdates Applies pending updates to the dataset.
TCustomBufDataset.CancelUpdates Cancels pending updates in the dataset.
TCustomBufDataset.RevertRecord Reverts the current record to its original (un-edited) values.