|
-
Jun 8th, 2002, 12:33 PM
#1
Thread Starter
Frenzied Member
detecting if something is in a string
I get info from a server but i want to see if it contains a certain text.... in example this :
test = winsock.getdata
and i want to check if it contains (in example) "HAHA"
but it does contain more text and might not be at the beginning or something :S
(i knew this but i forgot it)
-
Jun 8th, 2002, 12:40 PM
#2
Use the Instr function:
If Instr(test, "HAHA") > 0 Then
' the string is there
Else
' it isn't
End If
"It's cold gin time again ..."
Check out my website here.
-
Jun 8th, 2002, 12:50 PM
#3
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|