well, that looks pretty good really at 1st glance but it must be missing
something ?
I usually just do this in my own code when I log inot ot a text file and it
usually gets everything for me
You might want to try checking to 3 things my function looks for
The reason why I have a fix part is because I sometimes have many scenarios
in my function and this way I can have one function that can do a bunch of
things
Function FixStr(StrToFix,FixHow)
If Not IsNull(StrToFix) and StrToFix <> "" Then
If FixHow = "PrepareForLogfile" then
StrToFix = Replace(StrToFix,vbCrLf," ")
StrToFix = Replace(StrToFix,vbLf," ")
StrToFix = Replace(StrToFix,vbNewLine," ")
End If
End If
FixStr = StrToFix
End function
FixStr(Request("address_street"),"PrepareForLogfil e")
"Simon Harris" <to***********@makes-you-fat.com> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl...
Hi All,
I am trying to write a function that will remove all carriage returns from
a
string, so that the string of words can be used as meta keywords.
So far I have:
Function RemoveCR(strText)
strText = Replace(strText,chr(13),"")
strText = Replace(strText,chr(10),"")
strText = Replace(strText,vbCrLf ,"VISUALBASIC")
RemoveCR = strText
End Function
My string still ends up with carriage returns in it though! I don't get
it,
what did I miss?
Thanks,
Simon.
--
I am using the free version of SPAMfighter for private users.
It has removed 2054 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!