RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSQLDataSet.RecordCount Property

Indicates the total number of records associated with the dataset.

Pascal
property RecordCount: Integer;
C++
__property int RecordCount;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!