删除字符串中的所有空格 [英] Removing all spaces in a string
本文介绍了删除字符串中的所有空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
vb.net 中有没有删除字符串中所有空格的函数.我的意思是像这是什么"这样的字符串应该是Whatisthis"
Is there any function in vb.net that removes all spaces in a string. I mean a string like ' What is this' should be 'Whatisthis'
谢谢弗坎
推荐答案
Dim s As String = " What is this"
s = s.Replace(" ", "")
这篇关于删除字符串中的所有空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文