Max 5 API Reference
You can use these functions to access named table objects. More...
|short||table_get (t_symbol *s, long ***hp, long *sp)|
|Get a handle to the data in a named table object. |
|short||table_dirty (t_symbol *s)|
|Mark a table object as having changed data. |
You can use these functions to access named table objects.
Tables have names when the user creates a table with an argument.
The scenario for knowing the name of a table but not the object itself is if you were passed a t_symbol, either as an argument to your creation function or in some message, with the implication being "do your thing with the data in the table named norris."
|short table_dirty||(||t_symbol *||s||)|
Mark a table object as having changed data.
|s||Symbol containing the name of a table object.|
|short table_get||(||t_symbol *||s,|
Get a handle to the data in a named table object.
|s||Symbol containing the name of the table object to find.|
|hp||Address of a handle where the table’s data will be returned if the named table object is found.|
|sp||Number of elements in the table (its size in longs).|
Here is an example of retrieving the 40th element of a table: