Visual Basic (2008 Express) | ||||||||
Two-dimensional arrays | ||||||||
In VB, two-dimensional arrays are declared using two
subscripts.
Note again that the subscripts start from 0, so a two-dimensional array of real numbers with 2 rows and 3 columns such as ...
would be declared as in the example below... |
||||||||
Dim Sales(1,
2) As Single
Sales(0, 0) = 450.0
|
||||||||
Back |