Using punctuation in COLL?

Oli Mason's icon

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?

Thanks!

Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Oli Mason's icon

Thanks a lot!!

Oli Mason's icon

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.

Thanks

pdelges's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Chris Muir's icon

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

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

Here's another solutions:

pdelges's icon

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.

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

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 :-) :

Oli Mason's icon

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

sorry cant post patch, im at work.