Navigation:  Reference > Functions >

EndOfFile()

Print this Topic Previous pageReturn to chapter overviewNext page

 

EOF(1)

 

PURPOSE

This function will determine whether or not the program has tried to read a record that is past the end of the file.

 

PARTS

 

1 f/c/eRequired - The file number/handle to be checked.

 

RETURN TYPE - L

If the file is at EOF the function will return .T.; otherwise it will return .F.

 

COMMENTS

When a file is first opened this function would return .FALSE.  However, if you tried to find a record using the L (last) option when you first opened that file, then do a N (next) find, and then checked this function it would return .TRUE.

 

EXAMPLE

define EOF type L

EOF = EOF()

 

SEE ALSO

BOF()

 


Page url: http://www.cassoftware.com/tas/manual/endoffile().htm