Chapter 7 - VB.Net by Schneider
17
Out of Bounds Error
•
The following sets up an array, and then references an
element that doesn't exist.
This will cause an error.
•
Dim trees() As String = {"", "Sequoia", _
•
"Redwood", "Spruce"}
•
txtBox.Text = trees(5)