contents   index   previous   next

Cursor next()



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



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.



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



// assume 'database' is a valid Database object

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



// visit each object in the cursor

while (



Cursor previous()