Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 VB.NET 中使用 split 方法?我试过了:
arr.Split(New Char{','})
但这给了我一个错误。什么是正确的语法?
arr.Split(New Char() { ","c })
'开始评论。
'
试试这个: Dim ApplyTo As String = "Test1,Test2" asd = ApplyTo.Split(",") msgbox(asd(0)) 'Prints "Test1" msgbox.WriteLine(asd(1))