|
-
Jun 14th, 2000, 02:35 PM
#1
Thread Starter
Addicted Member
How Do I searech a TextBox !
Dim X
X = Inputbox("Type Stuff to Search")
WHATEVER THE CODE IS TO SEARCH TEXT1.Text
-
Jun 14th, 2000, 02:46 PM
#2
Addicted Member
I dont get it??
What do you mean by search?
I dont understand with the information you gave.
Could you please explain more?
-
Jun 14th, 2000, 02:54 PM
#3
Addicted Member
You have to elaborate a bit on it but it boils down to this:
Private Sub Command1_Click()
Dim strTextToSearch As String
strTextToSearch = InputBox("Enter text to search")
If InStr$(1, Text1, strTextToSearch) <> 0 Then
MsgBox "Found it"
else
MsgBox "Not there"
End If
End Sub
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Jun 14th, 2000, 10:01 PM
#4
Addicted Member
Please explain?
LAURENS Could you please explain the purpose of searching a text box..why would someone want to search a textbox? is it related to passwords? or security or spell checking?
The idea seems cool but i dont see a reason for it.
Thanks.
-
Jun 14th, 2000, 10:07 PM
#5
_______
file
in school sometimes you have to read a text file into a text box...perhaps it's a learning curve and someone needs to search a textbox for a given string.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 15th, 2000, 01:38 PM
#6
Addicted Member
I don't know why Stick wants to search a textbox, I'm just trying to answer his question.
Ask him.
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Jun 16th, 2000, 11:57 AM
#7
Thread Starter
Addicted Member
Wow! I Din't know that it was that big of deal!
I want to search a text box cause my app. get's a list off the internet and need to make sure certain things are in their.
But what's it matter what I need it for thier may be other that will use this code to for other apps.
Thanks For Helping me out!
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
|