Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>eof()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
EOF()


Syntax:     EOF()

Purpose:    To determine if an attempt has been made to move the record
            pointer past the end of the current database file.

Returns:    EOF() returns true (.T.) when you attempt to move the record
            pointer beyond the last logical record.  When EOF() becomes
            true (.T.), the record pointer is positioned to LASTREC() +
            1.  This is the case whether or not an active FILTER is SET
            or DELETED is ON.  Any further attempt to move the record
            pointer past LASTREC() + 1 returns the same result without
            error.  If the current database file contains no records,
            EOF() returns true (.T.).

Usage:      EOF() is used as a boundary condition test in any
            application where you are moving the record pointer downward
            through a database file.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   USE Sales
   GO BOTTOM
   ? EOF()              && Result: .F.
   SKIP
   ? EOF()              && Result: .T.


See Also: FIND LOCATE SEEK SKIP BOF() LASTREC() RECNO()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson