2012年11月27日 星期二

for each split

詳細請參考來源
--
 引用:


' We want to split this input string
Dim s As String = "there is a cat"

' Split string based on spaces
Dim words As String() = s.Split(New Char() {" "c})

' Use For Each loop over words and display them
Dim word As String
For Each word In words
   Console.WriteLine(word)
Next

沒有留言:

張貼留言