Here is the code in VB.NET (using Visual Studio 2010)... in the form_load event.
Dim tNumberInteger(3) As Integer
tNumberInteger(0) = 10
tNumberInteger(1) = 10
tNumberInteger(2) = 10
tNumberInteger(3) = 10
tNumberInteger(4) = 10 ' Suppose to get System.IndexOutOfRangeException here !!!
If I double click on My Project, I have the following settings:
Option Explicit : On
Option Strict: On
Option Compare: On
Option Infer On
Why I don't get the IndexoutOfRangeException on the tNumberInteger(4) = 10 ? Some students have the same problem, on others it's working fine. I don't see any differences in the settings.