The Trim function only takes one parameter, the string itself
DIM str
str = " my text "
str = Trim(str)
All trim does is remove the spaces from the front & the back of the
string.
If you need to remove other characters then you need to use the
replace function
str = Replace(str, vbcr, "")
This will remove all the "return sign" from the string.
I often use this:
str = Replace (str, vbcrlf, "<br>")
to convert all the returns & line feed characters into a html Break
"<br>" This is used for like a forum system when a user enters text in
a textbox but you then want to display that text on the HTML page like
in a forum.
HTH.
Al
On Sat, 10 Jan 2004 10:10:55 GMT, "Mikael Hellström"
<mi*************@telia.com> wrote:
Hi all,
i need to use the trim function trim("str","?")
My question are. How do i remove the "return sign" from a string??
Regards Mikael