XBase.BOF

Syntax:

BOF()

Returned value:

Type: Boolean.
True indicates the pointer is located before the first record; False indicates the beginning of the file has not been reached.

Description:

Receives flag indicating that the current record pointer has reached the beginning of the file.

Availability:

Thin client, server, thick client, external connection.

Example:

// Average value in the COST field
xB.Last();
Cost = 0;
RecCount = 0;
While 
Not xB.BOF() Do
    Cost = Cost + xB.COST;
    RecCount = RecCount + 1;
    xB.Prev();
EndDo
;
If 
RecCount > Then
    Cost = Cost / RecCount;
EndIf
;


    

1C:Enterprise Developer's Community