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" );
// data set.
firstCityCode = dataSet.get( 0, "CITY_CODE" );
See Also
- getDataRecord() [dataSet] - Gets a DataRecord from the DataSet
- getNumDataRecords() [dataSet] - Returns the number of DataRecords in the DataSet
scraper on 07/16/2010 at 4:56 pm
- Printer-friendly version
- Login or register to post comments