How about:
VB Code:
Dim TheSentence As String = "The red rabbit ran round the ragged rock2" Dim sWords() As String = System.Text.RegularExpressions.Regex.Split(TheSentence, " ") For i As int16 = 0 to 4 Label1.Text &= sWord(i) Next
|
Results 1 to 8 of 8
Threaded View
|
Click Here to Expand Forum to Full Width |