Cursor previous()
syntax: |
cursor.previous() |
return: |
boolean - false if the current row is the first row; otherwise true.
|
description: |
Using the previous method, the current row can be moved backwards through the records in the Cursor. The previous method moves the pointer and returns true as long as there is another row available. When the current row has reached the first 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 next(), Cursor first(), Cursor last()
|
example: |
// assume 'database' is a valid Database object var curs = database.cursor("select * from customer", true);
// set the current row to the last row in the cursor curs.last();
// visit each object in the cursor, backwards while (curs.previous()) ; |