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 - findnext() find the next file in a sequence http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 findnext()          Find the next file in a sequence
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func logical findnext extern

 Arguments
   None.

 Return
   A logical indicating if a matching file has been found.

 Description
   This function finds the next file in a sequence started by the findfirst()
   function. The original search attribute and pattern specified by
   findfirst() remain in effect.

   The function returns .t. if one more file could be found matching the
   criteria defined in the most recent findfirst() call. Otherwise, it
   returns .f..

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   // Display all .prg files in current directory
   
   proc Test_findnext
   if findfirst( "*.prg" , FIND_ARCHIVE )
      repeat
         ? findfstr()
      until .not. findnext()
   endif
   endproc

   proc main
   Test_findnext()
   endproc

See Also: findfirst()

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