Creating a list of actions

isaac74's icon

Hi,

I want to create a list of actions, i.e.:

1, 23, 45
3, 23, 55

^ the above is a list of two items, both of which contain three elements.

What object can I use to store these items? I was thinking maybe umenu.

Also, is it possible to output a selected line which is determined by an int?

thanks

Charles Baker's icon

[coll] is the immediate answer (simple setting, retrieving of values; persist data in patch is best available persistence choice)
other approaches:

[dict] (more involved in setting, querying and retrieving data,better data structure available, better persistence possibilities.)

embedded SQLdatabase!... the builtin db could be used, or NickRothwell's net.loadbang-SQL HSQLDB (both give cleaner & more advanced retrieval&setting with SQL...&good persistence choices)

(coll can do what u want quite well, just a pain to not have easy persistence external to the object in patcher.)

...just ruminatin' at work...take with grain of silica..er...sand....YMMV, Good Luck!
j2k
aka
cfb

isaac74's icon

Coll is just what I needed, thanks boss.

isaac74's icon

@Charles

Is it possible to program Coll to open a text file?

ie: create a message object and "open file.txt"?

also, if I wanted the user to be able to specify which text object he wants to open, how would I give the user the opportunity to do this? Is there are text box object?

If so, how do I route the output of that text the user enters as part of the message box's message?