i have declared an array but if there are no elements in it i'm getting an error:
Error 9
Subscript out of range: 'lbound'
clsCanvas:Running script
VB Code:
dim arrayE() as variant 'code redim preserve array(counter) arrayE(counter) = aVariable for i = 0 to ubound(arrayE) msgbox arrayE(i) next i
if i have 1 element in the array the array's ubound is 0, so i cannot check on O, do i have to check on ubound(arrayE) > -1??
or is there another solution?


Reply With Quote