2012-06-20 75 views

回答

12

這將你需要的東西:

Dim str As String = "1 2 3" 
Dim strarr() As String 
strarr = str.Split(" "c) 
For Each s As String In strarr 
    MessageBox.Show(s) 
Next 
+0

謝謝! :)! – BlackOpty

+3

+1好答案。然而,MsgBox是對VB6的回退。在.NET中使用更好的方法是MessageBox.Show。 –