-
(I'm fairly new to VB, so if someone could help me out with actual code, i'd really appriciate it!)
How can I have VB isolate X amount of characters from one parsed string to another? For example, if VB was given:
bob jim stevens
bob bobo stevens
How could VB save the jim and bobo?
Also, how could VB find the location of the bob?
thanks
-
Code:
Private Sub Command1_Click()
'here is an example
'of finding and getting
'strings, using Mid
'and InStr
Dim lngPos As Long
Dim TheString As String
TheString = "bob is cool"
lngPos = InStr(1, TheString, "bob")
TheString = Mid(TheString, lngPos, 3)
MsgBox TheString
End Sub