Datasnap.DBClient.TCustomClientDataSet.GetRecordCount
Delphi
function GetRecordCount: Integer; override;
C++
virtual int __fastcall GetRecordCount(void);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | protected | Datasnap.DBClient.pas Datasnap.DBClient.hpp |
Datasnap.DBClient | TCustomClientDataSet |
Description
Returns the total number of records in the dataset. {{#multireplace:Datasnap.DBClient.TCustomClientDataSet.GetRecordCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Data.DB.TDataSet.GetRecordCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Data.DB.TDataSet.GetRecordCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Returns the total number of records in the dataset.
GetRecordCount is the read access function for the RecordCount property.
GetRecordCount is inherited by some Query-type datasets, like TIBQuery. For Query-type datasets, the GetRecordCount contains the total number of records that have currently been fetched. To get GetRecordCount to report the total number of records in a Query-type dataset, call the Last method first.