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

 

 

 

 

 

 

 

 

 

 

 

 

CInt

The CInt function will convert an ASP variant value into an integer value. An integer is a whole number in the range -32768 to 32767.

It is possible that an error will occur when attempting to convert a value into an integer. You may trap for this error using error handling as shown below:

Dim sValue
Dim nValue

sValue ="324123"
On Error Resume Next
nValue = CInt(sValue)
If Err.Number <> 0 Then
    Response.Write "An Error occurred converting to integer: " & 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



"I only regret that I have one life to lose for my country." - Nathan Hale

©2010 San Diego Web Design - Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.