| Start | ||||||||
|---|---|---|---|---|---|---|---|---|
| Converting Text of The Textbox to an Integer Use the CInt function to provide conversions from any other data type to an Integer subtype. For example, CInt forces integer arithmetic when currency, single-precision, or double-precision arithmetic would normally occur. Assuming that you have 1 button and 2 textbox. If you type on textbox1.text If you have this code: In order to add the values of the 2 textboxes you need to convert their values to Note: When the fractional part of a value is exactly 0.5, the CInt function rounds to the closest even number. For example, 0.5 rounds to 0, while **1.5 rounds to 2, and 3.5 rounds to 4**. The purpose of rounding to the closest even number is to compensate for a bias that could accumulate when many numbers are added together. Syntax
Parameters
|
Read Article
https://develop.horje.com/learn/1434/reference