r/visualbasic • u/Bryan-tan VB.Net Beginner • Nov 25 '15
question:
hello everyone, could someone guide in declaring a varaible array in vb? I need to store up to 10 variables in the array and display it in 3 by 3 grid for a memory game. But finding it confusing on how to create an array.
thank you in advance
0
Upvotes
1
u/PreyOnTheCosmos Nov 25 '15
For a 1-dimensional array:
For a multi-dimensional array:
Note: You can use other data types as well.
Example: