gonegaming12
Member
- Joined
- Jul 10, 2007
- Messages
- 5
- Programming Experience
- 3-5
So today I was doing some coding where I need a 2+ dimensional array for my game I'm making and I realized that I have never needed to use one...so could someone help me with this.
VB6 was like this
But if I try to use access something it is null and i get an error. And since .net decides to now let you use
I need to know if there is a way to setup 2 dimensional arrays without have to every time you add a new object to it do this
VB6 was like this
VB.NET:
Public Class Tile
public something as integer
End Class
Dim tiles() as tile
But if I try to use access something it is null and i get an error. And since .net decides to now let you use
VB.NET:
Dim tiles() as new tile
I need to know if there is a way to setup 2 dimensional arrays without have to every time you add a new object to it do this
VB.NET:
tiles(i) = new tile