NumberFormat

Colin Holgate coiin at verizon.net
Tue Sep 11 08:12:30 EDT 2012


Mark's answer was a different way to solve the problem. Getting back to your question, you were doing things exactly right, only you were looking at the contents of the number variable, the formatting only happens when it's used as a string. Try this in the multiline message box:

set the numberFormat to "000"
put (1 + 0) into paddedNumber
put paddedNumber


More information about the use-livecode mailing list