Page 55 - Programming VB.NET
P. 55

Code With VB .Net                             51



                                                      How To Declare A
                                                           1D Array





                      Dim ArrayName (HighestSubscript) As DataType



                         Dim ArrayName ( ) As DataType = {InitialValues}





                                                          Example




                          Dim namapelajar (20) As String
                         Dim harga () As Double = { 12.5, 41.3, 50.9 }
   50   51   52   53   54   55   56   57   58   59   60