ASP Trim Function

web

 
  Sponsored Links


The ASP Trim() function is used to remove leading and trailing spaces from a string or the contents of a variable.

Trim Function Arguments

Text to be revised

ASP Coding for Trim Function

<%

sTxtString = " How is John? "
sTxtString = trim(sTxtString)

Response.Write sTxtString

%>


OR

<%

Response.Write trim(" How is John? ")

%>


Result

How is John?
   
 
web

ReaLife WebDesigns / 310.371.3275
We appreciate having the opportunity to contribute to the success of your business!

© 1999-2010 ReaLife WebDesigns. All rights reserved. site map | terms of use