Subscript clarification...

Status
Not open for further replies.

t258sm

New Member
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?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…