Function to check if the record pointer is at the beginning of file
BOF([<workarea | alias>])
The BOF() function returns .T. if an attempt is made to skip the record pointer before the first logical record of the currently selected table. If the optional <workarea | alias> is specified, then the function will operate in the required location.
use orders ? bof() .F. skip -1 ? bof() .T.