Click or drag to resize

DbServer.BoF Property

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

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

Property Value

Type: Usual
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