Thanks Richard. Bob S
On Jul 15, 2024, at 4:07 PM, Richard Gaskin via use-livecode <[email protected]> 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 end if end if return n end Bytes2Size _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
