numberFormat affecting array keys???

Bob Sneidar bobsneidar at iotecdigital.com
Fri Apr 21 12:29:40 EDT 2017


Okay this is why they call me Sly Dawg. I used the engine quirk against it to produce this:

on mouseUp
   repeat with i = 1 to 10
      put formatNumber(i, "00") into myArray [i]
   end repeat
   breakpoint
end mouseUp

function formatNumber pSourceString, pFormat
   set the numberFormat to pFormat
   put pSourceString into aArray [pSourceString]
   put the keys of aArray into tResult
   return tResult
end formatNumber

Booyah!

Bob S



More information about the use-livecode mailing list