keeps21
Member
- Joined
- Nov 28, 2008
- Messages
- 8
- Programming Experience
- 1-3
I have an array.
I want to add the values of 6 variables into this array, however I can't find a way to do it.
If I knew the values I'd do it like this
However i don't know the values, but have 6 variables I need to insert into the array.
They are
var1, var2, var3, var4, var5, var6
Pseudocode i've tried for this is
How would I do this?
Any help is greatly appreciated.
I want to add the values of 6 variables into this array, however I can't find a way to do it.
If I knew the values I'd do it like this
VB.NET:
MyArray(i)= New String { ("id"), ("ans1"), ("ans2"), ("ans3"), ("ans4"), ("ans5") }
However i don't know the values, but have 6 variables I need to insert into the array.
They are
var1, var2, var3, var4, var5, var6
Pseudocode i've tried for this is
VB.NET:
MyArray(i)= New String { (var1), (var2), (var3), (var4), (var5), (var6) }
How would I do this?
Any help is greatly appreciated.
Last edited: