Show: Delphi C++
Display Preferences

Data.DB.TDataSet.RecordCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RecordCount: Integer read GetRecordCount;

C++

__property int RecordCount = {read=GetRecordCount, nodefault};

Contents

Properties

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

Description

Indicates the total number of records associated with the dataset.

As implemented in TDataSet, RecordCount is always -1. Ordinarily an application does not access RecordCount at the TDataSet level. Instead a redeclared and implemented RecordCount property in a descendant class is accessed. RecordCount provides a fallback property for derived dataset classes that do not reimplement the property access method.

RecordCount is inherited by some Query-type datasets, like TIBQuery. For Query-type datasets, the RecordCount contains the total number of records that have currently been fetched. To get RecordCount to report the total number of records in a Query-type dataset, call the Last method first.


See Also

Code Examples


Personal tools
Translations