Tutorial by Examples

It forces you to explicitly declare all variables. What is the difference between explicitly declaring and implicitly declaring a variable? Explicitly declaring a variable: Dim anInteger As Integer = 1234 Implicitly declaring a variable: 'Did not declare aNumber using Dim aNumber = 1234 C...
Document level It is on by default, but you can have an extra layer of protection by placing Option Explicit On at the top of the code file. The option will apply to the whole document. Project level You can switch it on via the menu in Visual Studio: Project > [Project] Properties > Com...

Page 1 of 1