Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

New Articles From Microcontroller Tips

Back
Top