如是 ,我想把 "dkjfkd 12321 jfkdf" 三个单词分别分配给变量 a,b,c, 下面的语句怎么拆不了噢
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim a As String = "dkjfkd 12321 jfkdf"
Dim temp As String
Dim one As String
Dim two As String
Dim three As String
Dim j As Integer
Dim o As Integer
j = 1
For i = 0 To a.Length - 1
If a.Chars(i) <> " " Then
temp = temp.Insert(i, a.Chars(i))
ElseIf a.Chars(i) = " " Then
i += 1
j += 1
End If
Select Case o
Case 1
one = temp.ToString
Case 2
two = temp.ToString
Case 3
three = temp.ToString
End Select
Next
End Sub
End Class