Do you use the parameter "strict off", "clear off"? Or there may be a "strict user" and some other options, such as an "Implicit type". Intended Object ',' Late Binding ',' Implicit Conversion '?
Never. OPTIONS STRICT OFF is the same as OPTIONS BADPROGRAMMING ON.
OPTIONS STRICT OFF relaxes some of the checks that VB.NET does. It relaxes language rules. These rules should save you from yourself. Never let the tongue save you from yourself. This is especially true if you are starting from a more liberated environment, in which case there is a chance that you need to save.
One more note: most programming languages do not have the right to speak: please let me shoot myself in the foot.
Always develop in any language with full warnings and restrictions. No exceptions, ever.
Otherwise, this is a false economy, of course, it may seem that it works, but, of course, it will come back to bite you later.
( - PHP, "" , , ". , . , ?" )
- Option Strict On , . , , Option Strict Off .
Strict = On, , live, Explicit = On, .
Strict ON
OFF, -
. . , vbscripts, . ,
Strict OFF, - , , .
"" , , , -, , Strict ON , , .
Option Strict Off Option Explicit Off False Economies .
Option Strict Off
Option Explicit Off
You will spend more time chasing strange errors than it takes to write the error code and warnings first. My experience has taught me this.
The only exceptions are when I need to use late binding, in which case I have to disable it.
Source: https://habr.com/ru/post/1711578/More articles:Streaming Video to https - httpswindows services - windowsAsyncCallback for threading on a compact basis - multithreadingHow to transfer an arbitrary object on the Fitnesse page? - javaScala / Raise a question rss feed fetch - javacollecting mysql statistics - sqlWhat classes / interfaces should each .NET developer know? - .netкак получить имена переменных во время выполнения? - javaGDI + Exception when using DrawString () - c #my vs2008 addin for text formatting is awfully slow - code-formattingAll Articles