Split a string in VB.NET

前端 未结 3 1620
轮回少年
轮回少年 2020-12-06 10:38

I am trying to split the following into two strings.

\"SERVER1.DOMAIN.COM Running\"

For this I use the code.

Dim Str As Str         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 11:22

    Try this

    Dim array As String() = strtemp.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)
    

提交回复
热议问题