Another problem.

Reply

Join Date: May 2005
Posts: 27
Reputation: Lunaticrr is an unknown quantity at this point 
Solved Threads: 0
Lunaticrr Lunaticrr is offline Offline
Light Poster

Another problem.

 
0
  #1
Sep 21st, 2005
I have 3 text boxes and one command button on this form. Users are supposed to input something into text1 and text2 and click the command button for text3 to show the results. However I would like the programme to consider the values of text1 and text2 and based the results on that.

As long as text1 and text2 have even a particular part of a word that the user types in it should have a pre-determined result. Like say...the programme would respond to ANY words as long as it had the keywords "King" and "Little" in it.. If the user inputs "Adam King" and "Brian Littleton", just part of the two words should trigger the result as true, but if there is only one key word in only either one text or neither then the result should be false and depending on true or false the result is displayed in the text3 after the user inputs both values and clicks the button.

Yikes thats long...any one can help?
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 75
Reputation: purplegerbil is an unknown quantity at this point 
Solved Threads: 6
purplegerbil's Avatar
purplegerbil purplegerbil is offline Offline
Junior Poster in Training

Re: Another problem.

 
0
  #2
Sep 22nd, 2005
Hi,

I think this is what you were trying to say.......

pG
Attached Files
File Type: zip checkVB.zip (1.4 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

Re: Another problem.

 
0
  #3
Sep 22nd, 2005
use instr.

if instr(text1.text, "little") Then variable = yes
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC