How do I split a comma separated string?

后端 未结 2 643
耶瑟儿~
耶瑟儿~ 2021-01-23 11:47

I have a comma separated string.

e.g. {\"one,two,three\"} 

Can anyone please tell me if I can create an array from this and if so, how? in VB.

2条回答
  •  清歌不尽
    2021-01-23 12:29

    Like this:

    dim str as string = "one,two,three"
    dim str2() as string = split(str, ",")
    

    Reference:

    • Split Function (Visual Basic)

提交回复
热议问题