Message help

Steve Belovarich's icon

I have run into a problem with messages in Max.

How do I remove the spaces between items in a message?

EXAMPLE:

1 2 9
how does this become
129

I understand prepend and append, but these always leave spaces between items in a message so it acts like an array. This is usually handy, but now I am attempting to format text to display w/ jit.gl.text3d. The text displays great, except there is a space between every letter. Is there a way to prepend and append items without spaces?

I am attempting to make a word by having the use type in text with a number pad, kind of like on a cellphone. I have it working, but when someone types their name it just appends each letter to the message box. EXAMPLE:
S T E V E.

Any help would be greatly appreciated.

Code is below.

Max Patch
Copy patch and select New From Clipboard in Max.

Steve

seejayjames's icon

look to [sprintf], it's not limited to making spaces between each letter. [message] auto-formats them into lists, which is good for other uses (mainly with numbers, but symbols too). [sprintf] is essential in a lot of situations and is a good one to know.

Steve Belovarich's icon

seejayjames, you are awesome. thank you!