Option Explicit Off : Option Explicit « Language Basics « VB.Net Tutorial






Option Explicit Off

Module Explicit
   Public Sub Main()
      For ctr As Integer = 0 to 100
         ' Do something
         result = cntr
      Next
      Console.WriteLine("The counter reached " & result & ".")
   End Sub
End Module
The counter reached .








1.8.Option Explicit
1.8.1.Cause compiler error when Option Strict On
1.8.2.Option Explicit Off
1.8.3.Turn Explicit off to use variable without declaration