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