DbServer.EoF Property (Typed) | |
A logical value indicating whether the server is positioned at the end of the file, on the last record
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY EoF AS LOGIC GET
public override bool EoF { get; }
Request Example
View SourceProperty Value
Type:
LogicA 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:
1CLASS Sales INHERIT DBServer
2...
3FUNCTION EOFDemo()
4LOCAL oDBSales AS Sales
5oDBSales := Sales{}
6DO WHILE !oDBSales:EOF
7...
8oDBSales:Skip()
9ENDDO
See Also