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

 

 

 

 

 

 

 

 

 

 

 

 

Trim

The Trim function removes whitespace characters from the left and right side of a string. Whitespace includes all non-printable characters with the exception of carriage return characters (vbCr and vbCrLf.)

Dim sText
sText = " Surrounded by Whitespace "

' write the string with whitespace Response.Write "*" & sText & "*"

' write the string without whitespace Response.Write "*" & Trim(sText) & "*"


You may also use the LTrim and RTrim functions to only trim whitespace from the left or right side respectively.

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.