Syntax
Bof() --> lBoundaryArguments
None.
Return value
.T. when the current work area is at beginning of file, otherwise .F.. With no open work area, returns .T..
Description
Bof() reports the beginning-of-file state of the current work area. Moving before the first record, or opening an empty table, sets this state.
Notes
Bof() does not move the record pointer.
Example
PROCEDURE Main()
DbCreate( "bof_demo.dbf", { { "NAME", "C", 12, 0 } } )
DbUseArea( .T., , "bof_demo.dbf", "Demo" )
QOut( "At BOF: " + IIF( Bof(), "YES", "NO" ) )
DbAppend()
DbGoTop()
QOut( "After first record: " + IIF( Bof(), "YES", "NO" ) )
DbCloseArea()
FErase( "bof_demo.dbf" )
RETURNOutput