contents   index   previous   next



SimpleDataset nextRecord()

syntax:

simpledataset.nextRecord()

return:

object - the next record in the SimpleDataset. If there is no next record, null is returned.

 

description:

This method moves the current record forward in the SimpleDataset and returns the new current record. If the previous current record was the last record or the SimpleDataset is empty, null is returned.

 

see:

#include <smdtset.jsh>, SimpleDataset currentRecord(), SimpleDataset prevRecord(), SimpleDataset firstRecord(), SimpleDataset lastRecord()

 

example:

// get the next record

var rec = ds.nextRecord();

 

// so long as the record isn't null, print out all

// of the fields of the object

if( null != rec )

   for( var prop in rec )

      Clib.printf(prop + " = " + rec[prop] + "\n");

 


SimpleDataset prevRecord()