1
我在數據庫中有一個文本是「計算機硬件」。我使用的代碼,以分割string.split vb.net
' string seperated by colons '-'
Dim info As String = strcotegory
Dim arInfo As String() = New String(3) {}
' define which character is seperating fields
Dim splitter As Char() = {"-"c}
arInfo = info.Split(splitter)
For x As Integer = 0 To arInfo.Length - 1
Response.Write(arInfo(x) & "</br> ")
Next
但現在我想在TextBox2中TextBox1中和「硬件」得到「電腦」。
請指導我