Notifications
Clear all
Topic starter
Is there a way in MEL to completely clear out an array? I want to completely clear out any values and reset the size of the array.
Thanks in advance!
Posted : July 26, 2018 12:53 am
Let's say you did this:
local myArray = array("one","two",three",four")
You could simply do this:
myArray = ""
This would clear out the values. The downside is that if you have a place in your code that looks for the size of the array I think you would run into an error if you check it. But you could also check to see if your array is set to a blank sting in that code.
Or you could do this:
myArray = array()
This should start you with a new array that is blank.
Posted : July 26, 2018 5:45 am