Wonderful, thanks all.
Bob S
On Jul 15, 2024, at 6:01 PM, Paul Dupuis via use-livecode
wrote:
With due credit to Richard for the original, you might want to update it for
today's disk sizes, This adds GB and TB
___
use-livecode mailing list
use-li
With due credit to Richard for the original, you might want to update it
for today's disk sizes, This adds GB and TB
function Bytes2Size n
set the numberformat to "0.#"
if n < 1024 then
put n &" bytes" into n
else
put n / 1024 into n
if n < 1024 then
put n &" KB" into n
Spell Correction:
Avilable disk space: 454737.3 MB
Bob S
> On Jul 15, 2024, at 4:24 PM, Bob Sneidar wrote:
>
> Thanks Richard.
>
> Bob S
>
>
>> On Jul 15, 2024, at 4:07 PM, Richard Gaskin via use-livecode
>> wrote:
>>
>> function Bytes2Size n
>> set the numberformat to "0.#"
>> if n
Thanks Richard.
Bob S
On Jul 15, 2024, at 4:07 PM, Richard Gaskin via use-livecode
wrote:
function Bytes2Size n
set the numberformat to "0.#"
if n < 1024 then put n &" bytes" into n
else
put n / 1024 into n
if n < 1024 then put n &" k" into n
else
put n / 1024 &" MB" into n
Bob Sneidar wrote:
> I got ahold of a function someone wrote years ago called fwGestalt(). It
> looks to
> provide information about the current application it belongs to in a report.
> However it is calling a function called Bytes2Size() which apparently converts
> hard drive space from bytes to
I got ahold of a function someone wrote years ago called fwGestalt(). It looks
to provide information about the current application it belongs to in a report.
However it is calling a function called Bytes2Size() which apparently converts
hard drive space from bytes to actual free space. Does any