Closed for Company Meetings: Between September 18 (5pm PDT) and September 22 (12pm PDT), Support and Sales requests will be delayed. Only time-sensitive issues will be addressed during that time. Thanks for your patience.

leading zero and setting text in textedit

I would like to "set" the contents of a textedit object with a set message, like [set hello]. But the message I would like to set needs to be enclosed in quotes - it is a numeric string that starts with zero - "012". However when I try to do [set "0123"], it includes the quotes in the textedit object box. How do I get rid of the quotes, while preserving the leading zero?

I'm not sure you can, although there may be some sort of flaming hoop you could jump through that would get you close. Max doesn't preserve leading zeros in numbers, and symbols get the quotes, if there's any ambiguity (which there is in this case because the symbol is just a number.) If this is just for display, you could use a non-breaking flaming hoop, er… non-breaking space to make the number a symbol without the quotes:

Thanks Chris - that's a good hack! But I perhaps distilled my *real* problem down too simply. Attached is what I really want to do - I'm trying to constrain the input into a textedit to just 10 characters, all of which must be digits. It works wonderfully - except for the fact that you cannot have a leading zero, which it needs to be able to do. Any ideas?