Clearing Arrays

BlitzPlus Forums/BlitzPlus Programming/Clearing Arrays

thalamus(Posted 2005) [#1]
Is it better to re-Dim an array to clear it, or is it better to write a For...Next loop to clear it?

I'd like to avoid having too much garbage in memory if possible :)


Blaine(Posted 2005) [#2]
Better... as in faster? On my machine, it depends on what type the array is.


WolRon(Posted 2005) [#3]
When in doubt, write a test program.


Beaker(Posted 2005) [#4]
Re-dim is the only way to free up some memory.