如何去掉字符串或变量里的空格

如题所述

替换字符串中的特定字符(vb.net):

'Replace函数,Replace(expression, find, replacewith)

'expression 字符串表达式,包含要替换的子字符串。 
'find 要搜索到的子字符串。 
'replacewith 用来替换的子字符串。 

Replace(x," ",vbnullstring)

温馨提示:答案为网友推荐,仅供参考
相似回答