How to delete an array

BlitzMax Forums/BlitzMax Beginners Area/How to delete an array

Would the following code be sufficient to delete an array?

' Create MyArray
MyArray$[] = [ "one", "two", "three" ]

' Delete MyArray
MyArray = new string[0]


Ghislain

MyArray = Null

Then at some point later...
FlushMem


Good.
I tried that one. I got confused because when you use the debugger it will still note the array as 'MyArray[] = [...]'. Whereas other objects indicate 'MyType=Null'...
Thx!
Ghislain