Forums > MaxMSP

How to get first char of a string


April 8, 2012 | 3:29 pm

Hi.

I am new to max and have no idea how to get the first char of a string of a message. Anybody care to tell me how?

Much appreciated,
Nuno

April 8, 2012 | 3:36 pm

[ atoi ] to [ zl slice 1 ]

April 8, 2012 | 3:44 pm

Thanks. I managed to make it work, but I have to add an itoa object after to get the char back, instead of the corresponding ASCII value. Isnt’ there an easier way to do this, maybe with the RTC lib?

Thanks once again,
Nuno

April 8, 2012 | 3:49 pm

regexp?

— Pasted Max Patch, click to expand. —
April 8, 2012 | 8:59 pm

Thanks. That worked very well, to.

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

Forums > MaxMSP