|
-
Mar 15th, 2008, 08:26 AM
#1
Thread Starter
Frenzied Member
[2005] keyword search
Hello, how would i make my program search for keywords in a textbox?
Example:
txtWrite => text box
lblReply => label
Code:
If txtWrite.text = "hello computer how are you?" then
lblReply.text = "I am fine thankyou for asking."
End if
In the above code there is a bit of a problem what if the user types
"hello how are you?" or "hi computer how are you" it wont work because it must be exact is there a way to do a keyword search inside the textbox.
Im not good at databases so unless you can explain how to retrieve and store information in one please dont you it ina reply.
-
Mar 15th, 2008, 10:56 AM
#2
Addicted Member
Re: [2005] keyword search
You can use Instr(stringVar,valuetosearch)
returns >0 If match found.
example:
If Instr(stringVar,valuetosearch)>0 Then 'means sting found.
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
|