Visual Basic Defaults, Projects, Options Dialog Box
Specifies the default settings for Visual Basic 2005 project options. When a new project is created, the specified option statements will be added to the project header in the Code Editor. The options apply to all Visual Basic projects.
To access this dialog box, on the Tools menu, click Options, select the Projects and Solutions folder, and then click VB Defaults.
- Option Explicit
Sets the compiler default so that explicit declarations of variables are required. By default, Option Explicit is set to On. For more information, see /optionexplicit.
- Option Strict
Sets the compiler default so that explicit narrowing conversions are required and late binding is not allowed. By default, Option Strict is set to Off. For more information, see /optionstrict.
- Option Compare
Sets the compiler default for string comparisons: binary (case-sensitive) or text (case-insensitive.) By default, Option Compare is set to Binary. For more information, see /optioncompare.