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

 

 

 

 

 

 

 

 

 

 

 

 

Right

The Right function will return the rightmost characters from a string. The first parameter is the string you want to extract from. The second parameter is the number of characters on the right side to return.

You should use the right function whenever you know exactly how many characters you want to remove from the right side of a string. You can also use the Mid function to remove characters from the right side of the string by only passing the position of the starting character.

Dim sZip        ' entire zip code Dim sPlus4        ' additional four characters
sZip = "92030-5402"
If Len(sZip) > 9 Then
    sPlus4 = Right(sZip, 4)
    Response.Write "Plus4: " & sPlus4 & "<BR>"
End If

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



"I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image." - Stephen Hawking

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