Message help

Mar 10, 2010 at 2:16am

Message help

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.

Steve

– Pasted Max Patch, click to expand. –
#49056
Mar 10, 2010 at 2:38am

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.

#176199
Mar 10, 2010 at 4:01am

seejayjames, you are awesome. thank you!

#176200

You must be logged in to reply to this topic.