Filesize() Function

Richard Kreiss rkreiss at gccconsulting.net
Wed May 13 07:49:28 PDT 2020


Nancy,

Most of the time when a Filepro function gives a negative # it means that it can't find the object( in your case the file).

What value does aa show?  If it is blank or negative then the file was not found.  In that case you would continue to get negative values.


Richard Kreiss
GCC Consulting



-----Original Message-----
From: Filepro-list <filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com> On Behalf Of Nancy Palmquist via Filepro-list
Sent: Wednesday, May 13, 2020 10:19 AM
To: filePro Mailing List <filepro-list at lists.celestial.com>
Subject: Filesize() Function

Friends and filePro Experts,

Does anyone have an idea what it means when I do the following commands?

aa(8,.0)=Open([Name of file])

ab(8,.0)=filesize(aa)   'should report the filesize of the opened file and does most of the time.

But sometimes I get the value "-4" instead of a positive number of some kind.

I expect it might be an error of some kind and if a -4 is possible, can I expect other negative numbers?

I would appreciate any insight on this.  I am kind of assuming the file was not created or something bad like that happened.

Nancy Palmquist

--
Nancy Palmquist
Owner
Virtual Software Systems - www.vss3.com
(412) 835-9417

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200513/51ab6575/attachment.html>
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 11940 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200513/83b54a98/attachment.bin>


More information about the Filepro-list mailing list