rjdj / rjlib

Abstractions and externals for writing RjDj Scenes
http://more.rjdj.me
161 stars 43 forks source link

m_symbolarray.pd can't store commas or semicolons #14

Closed hellocatfood closed 11 years ago

hellocatfood commented 11 years ago

I'm using [textfile] to read individual words into [m_symbolarrary]. I've found that if a comma ( , ) or semicolon ( ; ) is anywhere within the text file then it doesn't get stored in the array.

footils commented 11 years ago

A comma or semicolon can only become part of a symbol if it is properly escaped, otherwise it will be interpreted by Pd itself. A comma for example will split one message into two messages. So If you have a comma in a line in the file stored in [textfile], Pd will interpret that as two messages in one line, and then it might happen that only the first part of the message is stored in m_symbolarray. You will have to make sure that the textfile is properly sent to the m_symbolarray.

Can you maybe provided an example where this failes?

hellocatfood commented 11 years ago

Thanks for the advice about escaping the comma and semicolon, it all now works properly

footils commented 11 years ago

Very cool! I guess I can close this issue then.