Clearing Arrays

BlitzPlus Forums/BlitzPlus Programming/Clearing Arrays

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 :)

Better... as in faster? On my machine, it depends on what type the array is.

When in doubt, write a test program.

Re-dim is the only way to free up some memory.