Array used to store a set of data in memory. The following is an example of the use of an array code in Visual Basic Net
.
Here we go. This is the code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesButton1.Click
Dim NamaBulan() As String = {"Januari", "Februari", "Maret", "April", "Mei", _
"Juni", "Juli", "Agustus", "September", "Oktober", "November","Desember"}
"Juni", "Juli", "Agustus", "September", "Oktober", "November","Desember"}
MsgBox(NamaBulan(0))
End SubEnd Class
Below is a picture of a demo program when executed: