What is the Option Strict statement?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the Option Strict statement?
Rating:
The Option Strict statement determines the data type conversions supported by an application. This statement is used along with an On or Off switch. The use of the Option Strict On statement restricts implicit data type conversions to only widening conversions. In other words, this statement is used to avoid any data type conversions in which there are possibilities of data loss. This statement also disallows any conversion between numeric types and strings. If this statement is present, it must appear in code before any other statements.
Rating:
Was this information helpful?
Other articles
- What is MyClass keyword?
- What is a catch statement?
- What is the ShowAlways property?
- What is Installutil.exe?
- What is declarative security check?