Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

Trim strings

Description:


How to trim strings using ASP and VB Script.

Code:

<html> <body> <%
str = " b "
Response.Write("a" & str & "c<br />")
Response.Write("a" & Trim(str) & "c<br />")
Response.Write("a" & LTrim(str) & "c<br />")
Response.Write("a" & RTrim(str) & "c")
%> </body> </html>

See working example:


Keywords:

ASP: Response.Write

VBScript: LTrim, RTrim, Trim


     Web Advertising | Advertising | Web Advertising | Advertising | Free Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos