How to append to coll?

Oct 22, 2010 at 7:37pm

How to append to coll?

Is there an easy way to append an item into coll using the next index, without knowing that index? Thanks.

#52891
Oct 22, 2010 at 7:43pm

i dont think this can be done with only one message.

maybe you want to (ab)use [umenu] for your application?

-110

#190257
Oct 22, 2010 at 7:57pm

Here’s another somewhat kludgey way.

– Pasted Max Patch, click to expand. –
#190258
Oct 22, 2010 at 7:57pm

But really, a more reasonable way would be to keep track of the last or highest index (whichever you want to use) in a counter or an int object just above coll, and then increment that by one each time you add a new item to the coll, something like this.

– Pasted Max Patch, click to expand. –
#190259
Oct 23, 2010 at 2:50am

there’s a length message.

– Pasted Max Patch, click to expand. –
#190260

You must be logged in to reply to this topic.