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

Free Components

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

 

 

 

 

 

 

 

 

 

 

 

 

Asc

The Asc operator will return the ASCII code value for the first character of the string parameter. Each character that makes up a text string is stored internally as a binary number. The ASCII standard allows different computer platforms to share information in a standard format.

Dim cReturn

cReturn = vbCr
Response.Write "ASCII Code for Return is: " & Asc(cReturn)


The most common use for the Asc function is for filtering out specific ranges of characters from an input or string. Using the less than (<) or greater than (>) operator, you can check if a character falls within an illegal range of character codes.

The counterpart for this function is the Chr function which will convert an ASCII code into the character it represents.

Orvado, San Diego Web Design

ASP Nuke CMS
Free Open Source
Content Manager
GoSwap Auctions
Buy, Sell
No Fees!

Contact Us | Contribute | About | Site Map



"In war there is no substitute for victory." - Douglas MacArthur

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