contents   index   previous   next



Cursor last()

syntax:

cursor.last()

return:

boolean - false if the cursor is empty; otherwise true.

 

description:

This method moves the current row to the last row in the Cursor and returns true so long as there is a last row. Note that if the cursor is empty, this method always returns false.

 

see:

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

 

example:

// assume 'database' is a valid Database object

var curs = database.table("customer");

 

// set the current row to the last row in the Cursor

curs.last();

 


Cursor next()