How to append to coll?

CowboyTakeTwo's icon

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

Roman Thilenius's icon

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

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

-110

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's another somewhat kludgey way.

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

AudioMatt's icon
Max Patch
Copy patch and select New From Clipboard in Max.

there's a length message.