Sign in Join
FPDoc Onlineexperiment

TCustomBufDataset.UpdateStatus function

Member of TCustomBufDatasetpublicIn unit BufDataset

Gets the update status for the current record in the dataset.

Declaration

pascal
function UpdateStatus: TUpdateStatus; override

Function result

Update status value for the record.

Description

UpdateStatus is an overridden TUpdateStatus function used to get the update status for the current record in the dataset. UpdateStatus re-implements the method defined in the ancestor class. The return value is a member of the TUpdateStatus enumeration, and includes the following values:

usUnmodified
Record has not been modified
usModified
Record has been modified
usInserted
Records was appended or inserted
usDeleted
Record has been deleted

UpdateStatus calls GetActiveRecordUpdateBuffer to get the update buffer for the ActiveRecord. When an update buffer exists for the record, its UpdateKind property is used as the return value for the method. The return value is usUnmodified when an update buffer does not exist for ActiveRecord.

See also

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