Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>finddate() - get file's date from last findfirst/next()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     finddate() - get file's date from last findfirst/next()
  Usage:    <string> = finddate()
  Params:   none
  Returns:  string equal to the date stamp of the last file
            found by findfirst() or findnext() in the format "MM-DD-YY"

 ---------------------------------- Example ---------------------------------

                 nfiles = filecount("*.dbf")
                 if nfiles > 0
                      declare dbfarray[nfiles]
                      declare dbfdates[nfiles]
                      temp = findfirst("*.dbf")
                      date = finddate()
                      for n = 1 to nfiles
                           dbfarray[n] = temp
                           dbfdates[n] = date
                           temp = findnext()
                           date = finddate()
                      next
                 endif

  Note:     Finddate() should only be used in conjunction with
            findfirst() and findnext(). In order to work correctly,
            you must call finddate() immediately after your call
            to findfirst() or findnext(). finddate() will get the
            the date of the file that findfirst() or findnext()
            just returned. finddate() always assumes that you
            have done a findfirst() or findnext() call first.


See Also: findfirst() filecount() findsize() findnext() findtime()

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