Function Eof() Foundation
Determines whether the end of file was reached.
Eof() --> lEOF
The return value of Eof() is .T. (true) when an attempt has been made to move the record pointer in a work area beyond the last logical data record. Otherwise .F. (false) is returned. When no file is open in the work area, the function returns .F. (false). When no records are available, Eof() returns the value .T. (true).
The database function Eof() indicates whether the end of file in a work area has been reached. Each work area has its own End-Of-File (EOF) status which is set to the value .T. (true) when an attempt is made to move the record pointer beyond the last logical record. Eof() returns the value .T. until the record pointer is again moved. The EOF status is set to .T. after a failed search operation is performed (for example, with DbSeek() or LOCATE). An attempt to move beyond the logical end of file can also occur using the command SKIP or the function DbSkip(). When the function Eof() is used without the alias operator, it returns the EOF status for the current work area.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.