-
Hey does anyone know what i can do in this situation?
-----------
'say i wanted to dim a bunch o stuff that all had # endings
'i would like to do this,
for i = 1 to 10
dim name & i & as integer
next
-----
What would i use for the & operator if i was using variables?
help would be much appreciated!
-
All variables have to be defined at design time and not at run time.
-
oh yeah, and it doesn't have to be an opeerator
just anything to speed up the process a little
thanx
-
The & can be used for "as long" i think.
-
If you want to declare variables in that respect, why not use an Array?
This will create an Array of 9 elements.
Code:
Dim MyArray(9) As Integer
'Usage:
'
'For I = 0 To 9
'MyArray(I) = I
'Next I
If you want your Array's you start at 1, then use Option Base 1
Code:
Option Base 1
Dim MyArray(10) As Integer