Notifications
Clear all
[Closed] How do you delete all elements in an Array?
Jun 16, 2011 7:44 pm
I simply want to clear out everything in an array.
There are thousands of things that get put into this array, so using deleteitem 1,2,3,4,5…is just not going to happen. Any ideas?
2 Replies
Jun 16, 2011 7:44 pm
Set the array.count value to 0 or #().
array.count = 100
#(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, ...)
array.count = 0
#()
array = #()
#()
-Eric
Jun 16, 2011 7:44 pm
Woooooowwwwwww I’m dumb lol. Shows how much I know about arrays. Thanks a ton though Eric!