Page 56 - Programming VB.NET
P. 56

52                                      Chapter 5: Arrays



                 Dim ArrayName (HighestRowSubscript,

                 HighestColumnSubscript) As DataType

                 Dim ArrayName ( , ) As DataType = { {InitialValues}, ....

                 InitialValues} }


                                              How To Declare A 2D
                                                     Array








                          Dim noRegistration (2,3) As Integer

                          Declares a 3 row and 4 column

                          Dim marks ( , ) As Integer = { {82,74},
                          {53,86},{65,73},{42,95} }


                          Declares and initializes a 4 row and 2 column
   51   52   53   54   55   56   57   58   59   60   61