| Start |
|---|
| Why Use It?
1. Implicit Narrowing Conversion Errors It prevents you from assigning to a variable that has less precision or smaller capacity (a narrowing conversion) without an explicit cast. Doing so would result in data loss. 2. Late Binding Calls Late binding is not allowed. This is to prevent typos that would compile, but fail at runtime 3. Implicit Object Type Errors This prevents variable being inferred as an Object when in fact they should have been declared as a type Conclusion Unless you need to do late binding, you should always have If you have to do late binding, you can either
|
How to Switch It On Project > [Project] Properties > Compile Tab > Option Strict > On
Tools > Options > Projects and Solutions > VB defaults > Option Strict Syntax
Remarks
|
Read Article
https://develop.horje.com/learn/1434/reference