getNumDataRecords

dataSet.getNumDataRecords()
Description
Returns the number of data records held by this object.
Example
// Loop through each of the data records.
for( i = 0; i < dataSet.getNumDataRecords(); i++ )
{
// Store the current data record in the variable myDataRecord.
 myDataRecord = dataSet.getDataRecord( i );

// Output the "PRODUCT_NAME" value from the data record to the log.
 session.log( "Product name: " + myDataRecord.get( "PRODUCT_NAME" ) );
}