|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Turns overflow-error checking for integer operations on or off.
- + | -
Optional. The /removeintchecks- option causes the compiler to check all integer calculations for errors such as overflow or division by zero. The default is /removeintchecks-.
Specifying /removeintchecks or /removeintchecks+ prevents error checking and can make integer calculations faster. However, without error checking, and if data type capacities are overflowed, incorrect results may be stored without raising an error.
To set /removeintchecks in the Visual Studio integrated development environment
Have a project selected in Solution Explorer. On the Project menu, click Properties. For more information, see.
Click the Compile tab.
Click the Advanced button.
Modify the value of the Remove integer overflow checks box.
The following code compiles Test.vb and turns off integer overflow-error checking.
vbc /removeintchecks+ test.vb