Re: fwGestalt() function

2024-07-16 Thread Bob Sneidar via use-livecode
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

Re: fwGestalt() function

2024-07-15 Thread Paul Dupuis via use-livecode
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  

Re: fwGestalt() function

2024-07-15 Thread Bob Sneidar via use-livecode
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

Re: fwGestalt() function

2024-07-15 Thread Bob Sneidar via use-livecode
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

Re: fwGestalt() function

2024-07-15 Thread Richard Gaskin via use-livecode
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

fwGestalt() function

2024-07-15 Thread Bob Sneidar via use-livecode
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