Data.DB.TDataLink.ActiveRecord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ActiveRecord: Integer read GetActiveRecord write SetActiveRecord;

C++

__property int ActiveRecord = {read=GetActiveRecord, write=SetActiveRecord, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TDataLink

Description

Specifies the index of the current record within the internal record buffer maintained by the dataset for the Owner of the TDataLink object.

Use ActiveRecord to discover or set the current record in the set of one or more records managed by the dataset. The set of records managed by the dataset corresponds to the number of records from the dataset visible at one time. For example, when the TDataLink object is owned by a data-aware grid, the set of records managed by the dataset corresponds to the number of rows shown by the grid, and the ActiveRecord represents the current row.

Note: Unidirectional datasets do not buffer records. When the data link is used with a unidirectional dataset, ActiveRecord is always 0.

See Also