Data.DB.TDataSet.ActiveRecord
Delphi
property ActiveRecord: Integer read FActiveRecord;
C++
__property int ActiveRecord = {read=FActiveRecord, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Data.DB.pas Data.DB.hpp |
Data.DB | TDataSet |
Description
Indicates the index of the active record in the internal cache of records.
Most TDataSet descendants maintain an internal cache of records from the underlying database table. This cache is used, for example, when the dataset is used to populate a data-aware grid, in which case it includes a record for each row in the grid. ActiveRecord indicates the offset in this cache of the record buffer for the active record. This active record is the value returned by the public ActiveBuffer method.
Note: Unidirectional datasets never cache records. For unidirectional datasets, the ActiveRecord property is meaningless (and always 0).