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


     Cell Phones | Car Insurance | Online Advertising | Epson Stylus Photo Printer | Remortgages
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp