file size
larry at significantplanet.org
larry at significantplanet.org
Mon Sep 22 20:20:21 EDT 2014
Thanks Paul and Alex and Richard,
I ended up using Paul's code:
on mouseUp
answer file "?"
put "binfile:" & it into tFile
put the length of URL tFile / 1000 & "KB" into fld "myResultField"
end mouseUp
It works just great!
Larry
----- Original Message -----
From: "Paul Hibbert" <paulhibbert at mac.com>
To: "How to use LiveCode" <use-livecode at lists.runrev.com>
Sent: Monday, September 22, 2014 4:50 PM
Subject: Re: file size
> Larry,
>
> Try:
>
> on mouseUp
> answer file "?"
> put "binfile:" & it into tFile
> put the length of URL tFile / 1000 & "KB" into fld "myResultField"
> end mouseUp
>
> Paul
>
> On Sep 22, 2014, at 2:29 PM, larry at significantplanet.org wrote:
>
>> Hello,
>>
>> I know I can use:
>> put the files into field "Current Files"
>>
>> to get the size of a file (in bytes), but is there any way to use "answer
>> file" or some other way to get the size of just one specific file?
>>
>>
>>
>> Thanks,
>>
>> Larry
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list