简体   繁体   English

我怎样才能取代“在vb.net中

[英]How can i replace " in vb.net

How can i replace this string: 我该如何替换这个字符串:

<say"Hello">

with another strings in VB.net? 用VB.net中的另一个字符串? this program is not working!! 这个程序不能正常工作!!

Text1.Text = Text1.Text.Replace("<say"Hello">", " ")

To get a literal quote in a string, use a double quote ( "" ) as so: 要在字符串中获取文字引号,请使用双引号( "" ),如下所示:

Text1.Text = Text1.Text.Replace("<say""Hello"">", " ")

The string will then be interpreted as this: 然后该字符串将被解释为:

<say"Hello">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM