Click or drag to resize

DbServer.EoF Property

X#
A logical value indicating whether the server is positioned at the end of the file, on the last record

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY EoF AS USUAL GET 
Request Example View Source

Property Value

Type: Usual
A logical value indicating whether the server is positioned at the end of the file, on the last record
Remarks
A logical value indicating whether the server is positioned at the end of the file, on the last record. It returns TRUE after an attempt is made to move the record pointer beyond the last logical record in a database file; otherwise, FALSE. If the current database file contains no records, EOF returns TRUE.
Examples
This example demonstrates using EOF as the condition defining a WHILE loop. Note that while performing a DO loop similar to the one below but you might also be including some other field-to-var comparisons, always have the EOF as the first condition on the DO WHILE line. This prevents you from comparing field values when you are in fact at an EOF condition:
X#
1CLASS Sales INHERIT DBServer
2...
3FUNCTION EOFDemo()
4LOCAL oDBSales AS Sales
5oDBSales := Sales{}
6DO WHILE !oDBSales:EOF
7...
8oDBSales:Skip()
9ENDDO
See Also