problems with replace

S

shank

Shouldn't the below code remove double quotes coming in from
Request("Description") ...?
It's not. Are there other ASCII characters I should be searching for?
The chart I have has Chr(34) as double quotes.
thanks

varDescription = Replace(Request("Description"),Chr(34),"")
 
S

Steven Burn

Just for fun ;o)

strTemp = ReplaceIt("lala " & chr(34) & " hehe", chr(34), vbNullChar)

Function ReplaceIt(sString, sChar, sWith)
ReplaceIt = Replace(sString, sChar, sWith)
End Function

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top