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 - findfdate() return the date of a file after a file find http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 findfdate()         Return the date of a file after a file find
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func date findfdate extern

 Arguments
   None.

 Return
   The date when the file was last modified.

 Description
   The findfdate() function returns the date of a file or directory located
   by the findfirst() or findnext() functions.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   // Show a listing of files indexed by date
   
   dbfdef sDate
      char( 14 ) fname
      date       fdate
   enddef
   
   indexdef
      date sIdxDate sDate->fdate
   enddef
   
   proc Test_findfdate
   build "sdate.dbf" from alias sDate
   open sDate
   if findfirst( "*.*", FIND_ARCHIVE )
      repeat
         append blank
         sDate->fname := findfstr()
         sDate->fdate := findfdate()
      until .not. findnext()
   endif
   set alias sIdxDate to "sdate.fdx"
   index sIdxDate
   go top
   do while .not. eof()
      ? sDate->fdate, sDate->fname
      skip
   enddo
   close all
   erase "sdate.dbf"
   erase "sdate.fdx"
   endproc

   proc main
   Test_findfdate()
   endproc

See Also: findfattr() findfext() findfsize() findfstr() findftime()

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