替换“在 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屋!
查看全文