hi, I have a question:
Supposing to have an array (of doubles), ARR, that contains N values.
To set all values of the array to Zero, is it faster to scan it and set each value
or to use Redim
?
Edit: Ooops, sorry for posting this in CodeBank instead of Visual Basic 6 and Earlier
Supposing to have an array (of doubles), ARR, that contains N values.
To set all values of the array to Zero, is it faster to scan it and set each value
Code:
For i = 0 To N
ARR(i) = 0
Next
Code:
Redim ARR(N)
Edit: Ooops, sorry for posting this in CodeBank instead of Visual Basic 6 and Earlier