RDD

Eof()

Determine whether the record pointer is at end of file

Syntax

Signature
Eof() --> lBoundary

Arguments

None.

Return value

.T. at the end-of-file boundary or with no open work area.

Description

Eof() reports whether the current work area is positioned after its last visible record.

Notes

Eof() does not move the record pointer.

Example

Eof.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   DbGoBottom()
   DbSkip()
   QOut( "EOF: " + IIF( Eof(), "YES", "NO" ) )
   DbCloseArea()

RETURN

Output

See also