filesize issue
Kenneth Brody
kenbrody at spamcop.net
Tue Oct 4 17:27:35 PDT 2011
On 10/4/2011 7:00 PM, Ed Hilovsky wrote:
> Two files:
>
> -rwxrwxr-x 1 filepro users 0 Oct 3 12:13 10002038.csv
> -rwxrwxr-x 1 filepro users 3522 Oct 3 12:14 10002039.csv
[...]
> Then: declare csvfile(40,*)
> Then: csvfile="/ets/"{ru{".csv"{""
> Then: aa=filesize(csvfile)
> If: aa eq "0"
> Then: errorbox "\r File Size is zero";end
>
> File 10002038.csv returns a -9
> File 10002039.csv returns a -9
>
> How could I tell when a file is zero length ? ( ie 10002038.csv)
By using FILESIZE() as documented -- passing it the handle of an open file,
and not a filename.
Did you use ERRNAME() to find out what system error 9 is? (I bet it's "bad
file number".)
BTW, what did you do to cause Outlook to double-space your message?
--
Kenneth Brody
More information about the Filepro-list
mailing list