Small company logo:
   History
 
Advertising banner:
 
 Statement.BOF
Home • Help • Customization Tools • FCAS • Language Reference • Statement.BOF
 
Purpose
Returns the current value of the beginning of file (BOF) flag.
When the program attempts to move the record pointer off the beginning of the result set, the BOF flag is set to TRUE and the record pointer is positioned at the first record in the result set.
7202010_20004_0.png        Note
It is not possible to move completely off the front of the result set; the rowset buffers will always be associated with a row if there are rows in the result set.
BOF returns FALSE if the record pointer has been successfully moved to a new record in the result set. If the record set is empty, BOF and EOF always return TRUE.
Syntax
DBStatement.BOF
Compliance:
Level 2
Example
The following example displays all contact names from a database from the last record to the first:
Sub DisplayContactNames(Contact as DBStatement)
        Contact.MoveLast
        Do While Not Contact.BOF
                Print "Contact name:";          Contact.Column("name")
        Contact.MovePrev
        Loop
End Sub