Clearing an array of types, how to?

BlitzMax Forums/BlitzMax Beginners Area/Clearing an array of types, how to?

I have an array

Array:MyType[]

I add some mytypes to it

Now i want to free the memory

If i do:

Array = Null

it is the same as looping through each element and setting them null:

Local i
For i = 0 to Array.length - 1
Array[i] = NULL
next

?