How to delete an array

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

ghislain(Posted 2005) [#1]
Would the following code be sufficient to delete an array?

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

' Delete MyArray
MyArray = new string[0]


Ghislain


teamonkey(Posted 2005) [#2]
MyArray = Null

Then at some point later...
FlushMem



ghislain(Posted 2005) [#3]
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