size

int dataSet.size ( )

Description

Get the number of DataRecords in the DataSet.

Parameters

This method does not receive any parameters.

Return Values

Returns the number of DataRecords in the DataSet, as an integer.

Change Log

Version Description
6.0.3a Available for all editions.

Examples

Get the Number of DataRecords in the DataSet

 // Loop through each of the data records.
 for( i = 0; i < dataSet.size(); 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.
     log.info( "Product name: " + myDataRecord.get( "PRODUCT_NAME" ) );
 }

See Also