How to make comma separated list?
Hi!
I want to add some Integers to a list, separated with a comma!
234,233,1,22 etc.
I want to use sprint to do that.
Unfortunately: sprintf %ld,%ld,%ld is not working because I need the comma as a normal symbol. sprintf %ld\,%ld\,%ld is not accepted by the sprintf object.
Any ideas?
I could make all integers to ASCI then append 44 (comma) und join them with the join object. But I want a better solution!
try double slash: %ld\\,%ld\\,%ld
O.
Hi, related question:
How do I handle commas in [text]?
escape the comma like this \, or it'll tell the messagebox to iterate through a list of messages. Or send in a symbol. O.
ah double slash works! Thanks! BUT how is this related to ANY MAX/MSP logic??? Magic Knowledge?
sometimes you have to escape the escape sign itself so it passes the sprintf in this case. O.