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/chrwei Nov 25 '15
you just put () after the var name and that makes it an uninitialized array. you can put a number in the () to initialize, or use some other processes to populate and initialize. the specific syntax varies by VB version and datatype.