What is the message to clear an array or table? I can't seem to find it!
-
Quick easy question
-
[; array_name const 0(
-
thanks thanks thanks!
-
[; array_name const 0(
can also be made as:
[const 0 (
|that makes it easier if your array name has $0 in it.
-
Heavy compiler doesn't support |define array| yet nor the message boxes. Is there a way to clear table some way other than through message?
-
Does it have
[list]
?If it does, here is a helpful pattern for sending messages:
[bng] | [list const 0] | [list trim] | [send $0-array]
-
@jancsika Thanks for answer! Unfortunately it doesn't support list object.
-
@jukkapoika if you know the length of the table you could do this:
clear_table.pd -
[bng] | [symbol const] | [pack s 0] | [route list] | [send $0-array]
-
Wonderful! Thank you both!
I'm actually quite embarrassed now since Heavy doesn't support internal messages but regular messages are just fine so the whole thing was actually sorted just like mentioned in earlier comments:[ const 0 (
|
[s table]