wackywoo105
Registered User.
- Local time
- Today, 13:27
- Joined
- Mar 14, 2014
- Messages
- 203
I want to generate multiple array variables (to hold strings and number) and loop through them. I was thinking something like:
This doesn’t work but I guess can be overcome using:
The problem now is I want to enter a line of values like I can with a single dimension array:
Is there a way to enter this data into a row of the multidimensional array rather than having to specify each column of each row separately? Also do I have it correct that the first number is column and the second is row?
Code:
For x = 1 to 9
Dim myarray_x(3) as variant
Next x
This doesn’t work but I guess can be overcome using:
Code:
Dim myarray(3, 8) as variant
The problem now is I want to enter a line of values like I can with a single dimension array:
Code:
myarray_1 = Array("Test", 3, 14, 4)
Is there a way to enter this data into a row of the multidimensional array rather than having to specify each column of each row separately? Also do I have it correct that the first number is column and the second is row?
Code:
myarray(0, 0) = “Test”
myarray(1, 0) = 3
myarray(2, 0) = 14
myarray(3, 0) = 4