contents   index   previous   next



SimpleDataset prevRecord()

syntax:

simpledataset.prevRecord()

return:

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

 

description:

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

 

see:

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

 

example:

// get the previous record

var rec = ds.prevRecord();

 

// 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 firstRecord()