Data.DB.TDataSet.RecNo

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSet

Delphi

property RecNo: Integer read GetRecNo write SetRecNo;

C++

__property int RecNo = {read=GetRecNo, write=SetRecNo, nodefault};

Description

Indicates the active record number in the dataset.

As implemented in TDataSet, the value of RecNo is always -1. Usually, an application does not access the RecNo property at the TDataSet level. Instead, the application accesses a re-implemented RecNo property in descendant classes, such as TFDTable or TClientDataSet. RecNo defines a property for derived datasets that support record numbers.

See Also

Code Examples