|
-
Mar 22nd, 2007, 07:10 AM
#1
Thread Starter
Lively Member
[RESOLVED] Search for a word in a text box?
I no this is an easy one but...
How do I find a word in a text box? Or more to the point, how do I check if there is a certain word in the text box?
Thanks a whole heap...
-
Mar 22nd, 2007, 07:13 AM
#2
Re: Search for a word in a text box?
Use the InStr Function:
vb Code:
If InStr(Text1.text,"Word") > 0 then
'Word was Found
Else
'Word was Not Found
End If
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Mar 22nd, 2007, 07:15 AM
#3
Re: Search for a word in a text box?
Use InStr$ Function
Code:
If InStr(Text1.Text, "myword") > -1 Then
MsgBox "Found"
End If
Edit--
Sorr MG, didn't see your post earlier..
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Mar 22nd, 2007, 07:17 AM
#4
Thread Starter
Lively Member
Re: Search for a word in a text box?
haha thanks... lol, i feel really dumb now. but yeah. thanks guess that was one of the easy stuff i never did... hehe thanks
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
|