We help IT Professionals succeed at work.
Get Started

I know this has nothing to do with VB

Praetoria
Praetoria asked
on
147 Views
Last Modified: 2010-04-30
This isn't a question from VB, its about Quick Basic.

I'm trying to insert variables into the name of another variable so that I can create a unique variable name each time it cycles.

E.g
start:
b = 4
va = 1
a(va) = b
b = b + 1
va = va +1
goto start
so that printing a(1) = 4, a(2) = 5 a(3) = 6 ETC

This works fine, except that there is a maximum of 10, so that you can only go up to a(10). However for the purposes of the game I need it to go up to at least 40.

Does ne1 know how I can get it to go higher, I've tried just about everything.
Comment
Watch Question
prog
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE