| | |
Another problem.
![]() |
•
•
Join Date: May 2005
Posts: 27
Reputation:
Solved Threads: 0
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?
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?
use instr.
if instr(text1.text, "little") Then variable = yes
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
irc://irc.rizon.net/#itf
![]() |
Similar Threads
- Problem with Windows Update and WinXP (Web Browsers)
- Installing Windows 98 On VMware. Floppy problem (Windows 95 / 98 / Me)
- Windows XP keeps restarting since a new video card (Windows NT / 2000 / XP)
- Redhat Linux 6.2 - ipop3d problem? (*nix Software)
- Problem with T720 (Cellphones, PDAs and Handheld Devices)
- Connection Problems (Networking Hardware Configuration)
- Encoding (Unicode) problem in IE 6.0 (Web Browsers)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
- Javascript/HTML problem!!! (JavaScript / DHTML / AJAX)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Command Prompt and Visual Basic
- Next Thread: VBA - Excel - sheet,range lookup with variables
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





