<< Click to Display Table of Contents >> CInt (function) |
CInt(Expression)
Converts an expression to the Integer data type.
The parameter Expression must be a number or a string consisting of a number.
The valid range of values:
-32768 <= Expression <= 32768
See also: CDbl, CLng, CSng, CStr
Example:
Sub Main
Dim y As Long
y = 25
x = CInt(y)
Print x
End Sub