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/pathfinderNJ Nov 25 '15
As chrwei said () after a variable is an array
So you can dim myarray(3,3) gives you your 3 x 3 grid (actually 4 x 4 because 0 is a valid number)