RAD Studio VCL Reference
TDataSet.ActiveRecord Property

Indicates the index of the active record in the internal cache of records.

property ActiveRecord: Integer;
__property int ActiveRecord;

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).

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!