T t258sm New Member Jul 7, 2014 #1 I have suspect that subscripts are limited to constants or simple integer/byte variables. The following code works; I=11 a=x(I) or a=x(11) However, if you try to do any subscript math, you get a syntax error as in the following example; I=11 a=x(I+1) ' equivalent to a=x(12) This is all assuming you have correctly used the DIM statement for x. Has any member encountered the same problem or am I using it incorrectly?
I have suspect that subscripts are limited to constants or simple integer/byte variables. The following code works; I=11 a=x(I) or a=x(11) However, if you try to do any subscript math, you get a syntax error as in the following example; I=11 a=x(I+1) ' equivalent to a=x(12) This is all assuming you have correctly used the DIM statement for x. Has any member encountered the same problem or am I using it incorrectly?