dim a as string = "select id from table"
例如,我想要第二段:
second paragraph = "ID"
There paragraph = "from"
...
答案 0 :(得分:0)
根据VB中的空格拆分字符串:
Dim words As String() = MyString.Split()
在C#中:
string[] Parts = MyString.Split(new char[0]);
或
string[] Parts = MyString.Split(null);