Forums > MaxMSP

Using punctuation in COLL?

Feb 06 2012 | 7:08 am

Hi, Just a quick one,

Im storing questions in a COLL and answers in another, but due to (,) being used to index the items My questions dont read correctly.

is there a way to put commas in?


Feb 06 2012 | 7:36 am

-- Pasted Max Patch, click to expand. --

Feb 06 2012 | 10:09 pm

Thanks a lot!!

Feb 07 2012 | 12:01 pm

Just played about with this a little more, and while i can get it use commas in the max window, I cant get it to display in a message box or text window properly.

I get;

‘this is what I get displayed when i try to use a comma/,’

any ideas how to get it to displayed in the patch corrctly as it needs to be seen by the user.


Feb 07 2012 | 2:00 pm

Two ugly and ridiculous solutions. It’s time to get some kind of string datatype in Max instead of loosing time imagining such workarounds:

-- Pasted Max Patch, click to expand. --

Feb 07 2012 | 7:08 pm

I imagine that adding another fundamental data type is a huge undertaking. There would be a _lot_ of objects to update.

Here’s another solutions:

-- Pasted Max Patch, click to expand. --

Feb 08 2012 | 3:17 pm

Chris, in both your sprintf solution and my "atoi/itoa", we need to add another workaround (like a route symbol) to get rid of the prepended "symbol" in case there is no space in the "string" stored in the coll.

I agree that adding a string datatype is a lot of work, but I’m sure it would be usefull.

Another trick, sligthly lighter, would be to use a umenu, with backslashes before the commas, to store and display the strings (soo much fun for a comma :-) :

-- Pasted Max Patch, click to expand. --

Feb 09 2012 | 1:54 pm

thanks for the replys i used a bit of each patch to get the desired results.

sorry cant post patch, im at work.

Viewing 8 posts - 1 through 8 (of 8 total)

Forums > MaxMSP