Click or drag to resize

DbServer.BoF Property (Typed)

X#
A logical value indicating whether the server is positioned at the beginning of the file, on the first record.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY BoF AS LOGIC GET 
Request Example View Source

Property Value

Type: Logic
A logical value indicating whether the server is positioned at the beginning of the file, on the first record.
Remarks
A logical value indicating whether the server is positioned at the beginning of the file, on the first record. It returns TRUE after an attempt to move backward beyond the first logical record in a database file; otherwise, it returns FALSE. If the current database file contains no records, BOF also returns TRUE.
Examples
This example demonstrates BOF by attempting to move the record pointer before the first record:
X#
1CLASS Sales INHERIT DBServer
2...
3FUNCTION BOFDemo()
4LOCAL oDBSales AS Sales
5oDBSales := Sales{}
6? ODBSales:BOF        // Result: FALSE
7oDBSales:Skip(-1)
8? ODBSales:BOF        // Result: TRUE
See Also