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



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to