Newbie question on tables

Didier's icon

I have this stream of ints that I'm trying to store into a table.

What's the easiest way to generate the incrementing index required for each stored value?

Or am I going about this the wrong way and is there a way to convert this into a list which can then be fed to the table?

Thanks in advance,
-D

Ben Bracken's icon

Check out load mode.

Sending a table the 'load' message will put it in load mode, which means that every incoming number will be stored in the table.

Check out the table ref for more info.

All the best,
-Ben

Didier's icon

That's exactly what I was looking for.

I went thru the ref page but for some reason totally missed this.

thks!

-D

comejohn's icon

I have kind of the same problem. I want to store a stream of data (integers) into a list or a table, but I don't know beforehand, how many values the stream will contain. Thus, the zl object in group mode isn't appropriate. Setting a table into load mode doesn't help either, because I end up either having loads of annoying zeros and the end (if the stream was shorter than the size of the table), or the last part of the stream will be clipped away (if it was longer). What is the way to solve that problem?

Thank you beforehand

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

you CAN do this with "zl group":

comejohn's icon

thank you ever so much. The missing detail was, that a bang message outputs the list stored so far in the "zl group" object. It works now. Thank you again.