Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - eof() determine if end of file is encountered http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 eof()               Determine if end of file is encountered
------------------------------------------------------------------------------
 Declaration
   database.hdr

 Syntax
   func logical eof extern

 Arguments
   None.

 Return
   A logical indicating if the record pointer is at end of file.

 Description
   The eof() function returns .t. if the record pointer has been positioned
   past the last logical record in the current alias.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_eof
   vardef
      _SLIST pList
   enddef
   open sTest
   pList := pickinit()
   // Insert records into a pick list.
   // Pick lists can contain as many records as memory allows.
   do while .not. eof()
       pickadd( pList, sTest->lastname )
       skip
   enddo
   ? "First record", pickstr( pList, 1 )
   ? "Last  record", pickstr( pList, pickcount( pList ) )
   endproc

   proc main
   Test_eof()
   endproc

See Also: aeof() bof()

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