Moves to the last row in a cursor.
PSCursorClass objects
cursorobject.MoveLast( )
Argument |
Description |
---|---|
cursorobject |
A variable that contains a reference to an instance of PSCursorClass |
Boolean. Returns true if the end of the cursor has been reached, and false if it has not.
At runtime, MoveLast has the following behavior:
Application server |
Runtime behavior |
---|---|
ASP |
Calls the MoveLast method of the RecordSet object |
JSP |
Calls the last method on the ResultSet object |
The following example moves to the last row in the “mycursor” object:
eof = mycursor.MoveLast();
if (eof == true )
{
psDocument.Write("End of cursor has been reached.");
}