Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Access the value of an array element.

Multi dimensional array

58
58
Use array name and referencing
thearray element index e.g
st
strFName(0) access the 1
element of array FName
e.g.
Dim strFName () As String
={“tinaye”,”taona”,”carol”}
Dim intCounter As Integer
For intCounter =0 To 2
MessageBox.Show(“hello” &
strFName(intCounter)
Next
Multi dimensional array
Previous arrays are single
dimension arrays
Multi dimensional arrays are
similar to single but each array
element is another array in
a multi dimension
Has one name and multiple
dimensions

You might also like