[thelist] replacing "

Joshua Olson joshua at waetech.com
Wed Mar 15 09:20:19 CST 2006


> -----Original Message-----
> From: Casey Crookston
> Sent: Tuesday, March 14, 2006 4:12 PM
> 
> VB.NET: how do you replace " in a string?
> 
> varString = varString .Replace("text_to_replace",""")
> 
> but how do you get the " inside the " "?

Casey,

Accomplish this by escaping the " thusly:

varString = varString .Replace("""",""")

<><><><><><><><><><>
Joshua L. Olson
WAE Technologies, Inc.
http://www.waetech.com/
Phone: 706.210.0168
Fax: 413.812.4864

Monitor bandwidth usage on IIS6 in real-time:
http://www.waetech.com/services/iisbm/ 



More information about the thelist mailing list