SimpleDataset currentRecord()
syntax: |
simpledataset.currentRecord() |
return: |
object - the current record of a SimpleDataset, or null if the current record is out of range.
|
description: |
This method returns the record for the current record in the SimpleDataset. If the current element is undefined, null is returned. The returned object has one property for each field of the current record a SimpleDataset.
|
see: |
#include <smdtset.jsh>, SimpleDataset nextRecord(), SimpleDataset prevRecord(), SimpleDataset firstRecord(), SimpleDataset lastRecord()
|
example: |
// get the current record var cr = ds.currentRecord();
// print out all of the fields of the object for( var prop in cr ) Clib.printf(prop + " = " + cr[prop] + "\n"); |