Thanks Richard.
Bob S
On Jul 15, 2024, at 4:07 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> 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