![]() |
|
|
Trim, LTrim and RTrim VBScript functionsYou can use the Trim function to remove spaces on both the left and the right side of a string. syntax: Trim(string) Example 1:
<%
myString=" This is an example using the Trim function. " Response.write Trim(myString) %> Output:
This is an example using the Trim function.
The LTrim function will remove spaces on the Left and the RTrim
function will remove spaces on the right. <%
varName=Trim(Request.Form("txtName")) %> Other useful VBScript functions for Parsing String
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|