Hello peeps, I'm new here and to programming pretty much, having only done some basic lingo stuff, I'm trying to get to grips with "proper" code :)
Ok, so I've got a question about arrays. I have a 3 dimensional array and I want to define the array in the shape of a 2D grid so I can see what I'm doing better. I'd heard from a friend that you can do this, so I've started thus:
Dim Grid(12,06,3)
grid = (1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1)
This doesn't appear to work, I get an error saying I didn't put an end bracket on the first line. So what I guess I'm asking is, can I do this?
Cheers guys! :)
Ok, so I've got a question about arrays. I have a 3 dimensional array and I want to define the array in the shape of a 2D grid so I can see what I'm doing better. I'd heard from a friend that you can do this, so I've started thus:
Dim Grid(12,06,3)
grid = (1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1)
This doesn't appear to work, I get an error saying I didn't put an end bracket on the first line. So what I guess I'm asking is, can I do this?
Cheers guys! :)