Difference between revisions of "EOF()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Function to check if the record pointer is at the end of file
 
Function to check if the record pointer is at the end of file
Line 31: Line 29:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 17:07, 27 November 2009

Purpose

Function to check if the record pointer is at the end of file


Syntax

EOF([<workarea | alias>])


See Also

BOF(), DELETE, FOUND(), PACK, RECALL, SET DELETED


Description

The EOF() function returns .T. when the last logical record of the table is passed. If the optional <workarea | alias> is specified, then the function will operate in the required location. The EOF() function is set to .T. if SEEK, FIND, LOCATE or CONTINUE operations are not successful.


Example

use catalogue
do while not eof()
    m_file=lower(trim(file) + "." + filetype)
    if not file("&m_file")
        delete
    endif
    skip
enddo


Products

Recital Server, Recital