Cause compiler error when Option Strict On : Option Explicit « Language Basics « VB.Net Tutorial
- VB.Net Tutorial
- Language Basics
- Option Explicit
Module Module1
Sub Main()
Dim AnInt As Integer = 5
Dim ALong As Long = 7
ALong = AnInt
'causes compiler error when Option Strict On
'AnInt = ALong
MsgBox(AnInt)
End Sub
End Module