Trim strings
Description:
How to trim strings using ASP and VB Script.
Code:
<%
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")
%>
See working example:
Keywords:
ASP: Response.Write
VBScript: LTrim, RTrim, Trim
|