CLng
The CLng function is used to convert an ASP variant value
into a long value. A long value is a whole number that falls in
the range: -2,147,483,648 to 2,147,483,647.
It is possible that an error will occur while converting the value
to a long. For this reason, you may want to wrap your conversion
fuction with an error handler as shown below:
Dim sValue Dim nValue
sValue ="324123" On Error Resume Next nValue = CLng(sValue) If Err.Number <> 0 Then Response.Write "An Error occurred converting to long: " & sValue End If
|
 |

|