Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Replace Double Quotes

Status
Not open for further replies.

cheynei

ISP
Jan 23, 2002
4
US
Need to replace " with in. or escape it so it will work with my sql update and insert statements
I tried the following:
newstring = replace(oldstring, """", "in.")
which doesnt give an error, but doesnt replace the "
Also tried, which gives an error
newstring = replace(oldstring, """, "in.")

Thanks
 
What do you mean is not working?
I just tryed newstring = replace(oldstring, """", "in.")
and the function is replacing doulbe quotes

To escape it use
newstring = replace(oldstring, """", "")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top