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>findsize() - get file's size from last findfirst/next()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     findsize() - get file's size from last findfirst/next()
  Usage:    <integer> = findsize()
  Params:   none
  Returns:  integer equal to the size of the last file found by
            findfirst() or findnext()

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

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

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


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

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