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.

Syntaxe

VBScript

resultset.EnableRecordCount 

Perl

$resultset->EnableRecordCount(); 
Identificateur
Description
resultset
A ResultSet object, representing the rows and columns of data resulting from a query.
Valeur renvoyée
Aucune.

Exemple

VBScript

Set ResultSet = cqSession.BuildResultSet(qrydef)

ResultSet.EnableRecordCount
ResultSet.Execute
count = ResultSet.RecordCount 

Perl

$resultset->EnableRecordCount();
$resultset->Execute();
$rows = $resultset->GetRecordCount(); 

Commentaires en retour