Whenever I created a new VB.NET program I must go into the project's properties and set 'Option strict' on. Can I do that once so it is a default for every time I create a new project?
Option Strict prevents VB from making any implicit data type conversions that are narrowing since narrowing conversions may involve data loss.
The Explicit option indicates whether you will declare all variables. The Strict option indicates whether all variables will be of a specific type.
In Visual Studio, go menu Tools -> Options -> Projects and Solutions -> VB defaults -> Option Strict. Set it to "On".
Every time you create a new project, it will have Option Strict On by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With