Removing all spaces in a string

前端 未结 4 703
无人及你
无人及你 2021-01-21 03:46

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\'

Thanks Furqan

4条回答
  •  甜味超标
    2021-01-21 04:22

    Use String.Replace()

    Dim s As String = " What is this"
    s = s.Replace(" ", "")
    

提交回复
热议问题