numberFormat affecting array keys???

Bob Sneidar bobsneidar at iotecdigital.com
Fri Apr 21 11:58:50 EDT 2017


Okay simple solution: 

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

function formatNumber pSourceString, pFormat
   set the numberFormat to pFormat
   add 0 to pSourceString
   return pSourceString
end formatNumber

This works because numberFormat gets reset once the handler exits. DOH! 

Bob S






More information about the use-livecode mailing list