API:Data.SqlExpr.TCustomSQLDataSet.RecordCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property RecordCount: Integer read GetRecordCount;

C++

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

Properties

Type Visibility Source Unit Parent
property public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TCustomSQLDataSet

Description

Indicates the total number of records associated with the dataset.

Data.SqlExpr.TCustomSQLDataSet.RecordCount inherits from Data.DB.TDataSet.RecordCount. All content below this line refers to Data.DB.TDataSet.RecordCount.

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