contents   index   previous   next



Cursor first()

syntax:

cursor.first()

return:

boolean - false if the cursor is empty or if cursor is forward-only cursor and the current row is not the first row, otherwise true.

 

description:

This method moves the current row to the first row in the Cursor and returns true so long as there is a first row. Note that if the cursor is empty, this method always returns false. Also note that, if the cursor does not allow backwards movement of the current row, false will be returned.

 

see:

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

 

example:

// assume 'database' is a valid Database object

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

 

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

curs.first();

 


Cursor insertRow()