Bde.DBTables.TBDEDataSet.UpdateRecordTypes
Delphi
property UpdateRecordTypes: TUpdateRecordTypes read GetUpdateRecordSet write SetUpdateRecordSet;
C++
__property Data::Db::TUpdateRecordTypes UpdateRecordTypes = {read=GetUpdateRecordSet, write=SetUpdateRecordSet, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TBDEDataSet |
Description
Specifies the type of records visible in a dataset when cached updates are enabled.
Use UpdateRecordTypes to specify the records that are visible in a dataset when cached updates are enabled. UpdateRecordTypes is a set that can have the following values:
Value | Meaning |
---|---|
rtModified |
Modified records are visible. |
rtInserted |
Inserted records are visible. |
rtDeleted |
Deleted records are visible. |
rtUnmodified |
Unmodified records are visible. |
By default, a dataset is created with an UpdateRecordTypes set of [rtModified, rtInserted, rtUnmodified], meaning that all existing, edited, or inserted records are visible to the user.
An application that must cycle through a dataset to undelete records may change UpdateRecordTypes as part of an undelete method, so that deleted records are "visible" long enough to restore them to their previously undeleted conditions.
An application might also use UpdateRecordTypes like a filter to temporarily limit visible records to those added or inserted by the user during the current session.