EnableRecordCount
Description
Enables a record count for the result set.
To get a record count, you first use EnableRecordCount to enable row count and then call RecordCount to get the number of records. Use this method after defining the ResultSet object, but before executing it.
Syntax
VBScript
resultset.EnableRecordCount
Perl
$resultset->EnableRecordCount
();
- Identifier
- Description
- resultset
- A ResultSet object, representing the rows and columns of data resulting from a query.
- Return value
- None.
Example
VBScript
Set ResultSet = cqSession.BuildResultSet(qrydef)
ResultSet.EnableRecordCount
ResultSet.Execute
count = ResultSet.RecordCount
Perl
$resultset->EnableRecordCount();
$resultset->Execute();
$rows = $resultset->GetRecordCount();