取代退货 [英] Replace returning Nothing
本文介绍了取代退货的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我下面有代码;
Msg = ""
Msg = Replace(Msg, "'", "''")
在第二行之后,Msg为Nothing,而我希望它为".这是怎么回事,我该如何避免呢?
After the second line Msg is Nothing while I expected it to be "". What is going on here and how can I avoid Nothing?
谢谢
升级
推荐答案
您将Msg ="设置为这意味着Msg = Nothing
You set Msg="" which means Msg = Nothing
除非消息包含某些内容,否则什么都不会...
Unless Msg contains something it will be nothing...
这篇关于取代退货的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文