Correct me if I'm wrong, but I don't believe the .clear method works on multidimensional arrays.
To just clear the data and keep the bounds, see if this is what you are looking for. -Andrew
Code:
dim row, col as integer
row = ubound(arrMyArray,2)
col = ubound(arrMyArray,1)
redim arrMyArray(col, row) ' keeps bounds
redim arrMyArray(-1) ' does not keep bounds
' in both cases, data is cleared.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.