Anyone have any idea how to search a textbox for a word and get the next word after it in vb6?
example:
"message" "hello"
The code should get the 2nd word, "hello".
I've been trying to find a way to do this, so far I can search for a word but can't find a way to ignore the space character between the words and copy the 2nd word up to the next space character....
User Profile
Collapse
-
Searching textbox?
-
Thx, funny, all I had to change was (2) to (1) , thx guys for making things clearer though.
Text2.Text = bDayArr(1) ' subscript out of range -
Subscript out of range?
Keep getting "subscript out of range" any idea why? This function is looped btw.. Thx...
Private Sub getBday()
bDay = List1.List(next Bday)
bDayArr = Split(bDay, " - ")
Text1.Text = bDayArr(0) ' subscript out of range
Text2.Text = bDayArr(2) ' subscript out of range
nextBday = nextBday + 1
End Sub
No activity results to display
Show More
Leave a comment: