Data.DB.TDataSet.RecordCount
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TDataSet |
Delphi
property RecordCount: Integer read GetRecordCount;
C++
__property int RecordCount = {read=GetRecordCount, nodefault};
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