DbServer.BoF Property (Typed) | |
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
public override bool BoF { get; }
Request Example
View SourceProperty Value
Type:
LogicA 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:
1CLASS Sales INHERIT DBServer
2...
3FUNCTION BOFDemo()
4LOCAL oDBSales AS Sales
5oDBSales := Sales{}
6? ODBSales:BOF
7oDBSales:Skip(-1)
8? ODBSales:BOF
See Also