get

Object dataSet.get ( int dataRecordNumber, String identifier )

Description

Get a single piece of data held by a DataRecord in the DataSet.

Parameters

  • dataRecordNumber Index of the DataRecord in the DataSet, as an integer. Remember that the DataRecords set is zero based and so the first DataRecord would be at the index of zero.
  • identifier The name of the element to retrieve from the DataRecord, as a string.

Return Values

Returns the value associated with the DataRecord identifier. It will be a string unless you have added values to the DataRecord whose values are not strings.

Change Log

Version Description
4.5 Available for all editions.

Examples

Get Token Value From DataRecord

 // Gets the value "CITY_CODE" from the first data record in the
 // data set.

 firstCityCode = dataSet.get( 0, "CITY_CODE" );

See Also