替换“在vb.net [英] replace " in vb.net
本文介绍了替换“在vb.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vb.net中替换双引号?
how can i replace the double quote in vb.net?
它不工作这个代码
name.Replace("""," ")
推荐答案
您需要在这些引号内使用双引号(并获取返回值 - String.Replace不对字符串本身运行,它返回一个新的字符串):
You need to use a double quote within those quotes (and get the return value - String.Replace does not operate on the string itself, it returns a new string):
name = name.Replace(""""," ")
这篇关于替换“在vb.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文