contents   index   previous   next



Cursor next()

syntax:

cursor.next()

return:

boolean - false if the current row is the last row; otherwise true.

 

description:

The current row of a Cursor is initially positioned "before" the first row. Using the next method, the current row can be moved forwards through the records in the Cursor. The next method moves the pointer and returns true as long as there is another row available. When the current row has reached the last row of the Cursor, next returns false. Note that, in the event of an empty Cursor, this method will always return false.

 

see:

#link <sedbc>, Cursor previous(), Cursor first(), Cursor last()

 

example:

// assume 'database' is a valid Database object

var curs = database.cursor("select * from customer",

                           true);

 

// visit each object in the cursor

while (curs.next())

  ;

 


Cursor previous()