Visual InterDev

             

Specifies whether the cursor position is at the end of the recordset. Read-only at run time. Not available at design time.

Syntax

object.EOF

Parameters

object

A script object.

Remarks

This property contains a Boolean value. If the value is true, the cursor is positioned after the last record of the Recordset object, otherwise the value is false.

You can use this property to avoid moving past the last record of the recordset.

Note   This property determines if the cursor is positioned after the last record in the recordset.

Use the BOF property to specify whether the cursor is positioned before the first record in the recordset.

Example

In the following VBScript, the value of "myfield" is written to the page as long as the cursor is not positioned beyond the end of the recordset.

Do While not MyRecordset.EOF
   Response.write MyRecordset.fields.getValue("myfield")
   MyRecordset.moveNext
Loop