Removing all spaces in a string

前端 未结 4 662
无人及你
无人及你 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:24

    Using String.Replace:

    Dim Test As String = "Hello Hi"
    Test = Test.Replace(" ", String.Empty)
    

提交回复
热议问题