avoiding space in messages

Nov 15, 2010 at 11:36am

avoiding space in messages

Hi all, it’s probably very simple. I have this problem since the beginning, it’s time to solve it. How do you have arguments in messages ($1) without a space between the value and the preceding text?
e.g. (set buffer $1) to create dynamic name for buffers
Alberto

#53325
Nov 15, 2010 at 11:48am

hi,

you can use sprintf.

g

#191823
Nov 15, 2010 at 11:49am

To create a symbol with spaces inside, just enclose the text with “double quotation marks”, otherwise max will treat it as a list.

#191824
Nov 15, 2010 at 12:03pm

i use combine:

– Pasted Max Patch, click to expand. –
#191825
Nov 15, 2010 at 12:36pm

fantastic combine work and also sprintf, i feel much better now!
A

#191826

You must be logged in to reply to this topic.