numberFormat affecting array keys???

Bob Sneidar bobsneidar at iotecdigital.com
Thu Apr 20 19:51:12 EDT 2017


Hi all. 

Put this into a button:

on mouseUp
   set the numberFormat to "00"
   repeat with i=1 to 10
      put i into myArray [i]
      breakpoint
   end repeat
end mouseUp  

At the breakpoint examine the array. There will be a 1 in an element with the name... ready??? "01"

Okay THAT has GOT to be a bug!!! Why the hell is numberformat modifying the name of the array element?? I haven't done ANY math on it. Apparently the engine DOES! 

Bob S






More information about the use-livecode mailing list