It is obvious to me that the best way to clear an bounded array but what about a bounded array?
What is the most efficient way to clear a bounded array. For example, would it be to one of the following?:
-
Redim the array to -1 and then redim the array back to it’s desired bounds. I don’t know if it would be too expensive to do that.
-
Redim the array to -1 but not redim back to the bounds.
-
I realise this could depend on the size of the array. Loop through each value and assign it nil.
Thanks