Data.SqlExpr.TCustomSQLDataSet.RecordCount

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property RecordCount: Integer read GetRecordCount;

C++

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

Description

Indicates the total number of records associated with the dataset.

Read RecordCount to determine the total number of records in the dataset. An application can read RecordCount even if the dataset is not active.

Reading RecordCount will generate an exception if the dataset can't determine the number of records. Do not read RecordCount if

The dataset represents stored procedure.

The dataset represents a query that contains parameters.

The dataset represents a multi-table join.

See Also