Dear list,
I'm looking for a way of dynamically creating the message to add a line in a text file. I basically want to avoid [add $1 $2 ... $n ( because I don't necessarily know n beforehand AND I cannot create the list of values dynamically using [add2 ( because I get $1, $2,..,$n as a pre-packed list. The thing is that i just discovered that this list : "add 1 0 0 1" is not the same as the message : [add 1 0 0 1 ( (and this is annoying me!).
If i can't create the message dynamically with a pre-packed list, is there a way i can at least store the message?
Cheers,
Pierre
Le 18/01/2012 18:50, Pierre Massat a écrit :
Dear list,
I'm looking for a way of dynamically creating the message to add a line in a text file. I basically want to avoid [add $1 $2 ... $n ( because I don't necessarily know n beforehand AND I cannot create the list of values dynamically using [add2 ( because I get $1, $2,..,$n as a pre-packed list. The thing is that i just discovered that this list : "add 1 0 0 1" is not the same as the message : [add 1 0 0 1 ( (and this is annoying me!).
If i can't create the message dynamically with a pre-packed list, is there a way i can at least store the message?
you can use a list object, but you need a list trim after it.
c
Cheers,
Pierre
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Sweet man! I should have read the list help patch a little more thoroughly...
Thank you.
Pierre
2012/1/18 Cyrille Henry ch@chnry.net
Le 18/01/2012 18:50, Pierre Massat a écrit :
Dear list,
I'm looking for a way of dynamically creating the message to add a line in a text file. I basically want to avoid [add $1 $2 ... $n ( because I don't necessarily know n beforehand AND I cannot create the list of values dynamically using [add2 ( because I get $1, $2,..,$n as a pre-packed list. The thing is that i just discovered that this list : "add 1 0 0 1" is not the same as the message : [add 1 0 0 1 ( (and this is annoying me!).
If i can't create the message dynamically with a pre-packed list, is there a way i can at least store the message?
you can use a list object, but you need a list trim after it.
c
Cheers,
Pierre
______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list