Option Explicit & Option Strict

By default Visual Basic .NET creates undeclared variables for you

Option Explicit On

Variables must be declared

Option Strict On
  • Strings will not implicitly convert to numbers.

  • Numeric data types will be implicity converted to less restrictive types.

  • Implicit conversion to a more restrictive type will cause a syntax error.