RTrim
The RTrim function removes whitespace characters from
the right side of a string. Whitespace characters include
blank spaces and tabs.
You should be careful when using the RTrim function with
strings that contain carriage returns (vbCr or vbCrLf).
The RTrim method will not trim carriage returns.
Dim sText sText = " Here is a sample string " Response.Write "*" & RTrim(sText) & "*"
You should also check out the LTrim and Trim functions
for more ways you can trim the whitespace from strings.
|
 |

|