Hi,
I dont know which is more efficient way to do
using Lbound and ubound in for loop or first determining the lbound and ubound ,then saving them in variables and then using it.
for eg if i have an array test with 4 elements
so using
for i = lbound(test) to Ubound(test)
is more efficient or
lower= lbound(test)
upper= Ubound(test)
and for i= lower to upper
is more efficient.
I guess it boils down to question that in for loop does it itereates for each run or once it has done lower limit and upper limit it uses that value
Thanks
I dont know which is more efficient way to do
using Lbound and ubound in for loop or first determining the lbound and ubound ,then saving them in variables and then using it.
for eg if i have an array test with 4 elements
so using
for i = lbound(test) to Ubound(test)
is more efficient or
lower= lbound(test)
upper= Ubound(test)
and for i= lower to upper
is more efficient.
I guess it boils down to question that in for loop does it itereates for each run or once it has done lower limit and upper limit it uses that value
Thanks