Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

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

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"With time and patience the mulberry leaf becomes a silk gown." - Chinese Proverb

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.