MoveFirst

Description

Moves to the first row in a cursor.

Applies to

PSCursorClass objects

Syntax

cursorobject.MoveFirst( )

Argument

Description

cursorobject

A variable that contains a reference to an instance of PSCursorClass

Returns

Boolean. Returns true if the end of the cursor has been reached, and false if it has not.

Usage

At runtime, MoveFirst has the following behavior:

Application server

Runtime behavior

ASP

Calls the MoveFirst method of the RecordSet object

JSP

Calls the first method of the ResultSet object

Examples

Example 1

The following example moves to the first row in the “mycursor” object:

eof = mycursor.MoveFirst();
if (eof == true ) 
 {
  psDocument.Write("End of cursor has been 			reached.");
 }

See also