Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   Key Words (https://www.askmehelpdesk.com/showthread.php?t=172994)

  • Jan 16, 2008, 06:27 AM
    legend232
    Key Words
    Hi there, I am creating a quiz-type program. A question will be asked and the user will enter the answer in the given box. However, some of the answers will require more than one word, and the user may explain it differently than I would. I was wondering if VB is able to search the answer written in the box for key words so that I know if the user is correct or not. If so, how does it work, and if not, do you have any other suggestions?
  • Mar 1, 2008, 04:20 AM
    Ache
    Try Text 1.Text=Instr(strText,"Type The Key word"). This will locate the key word and display the location. Then use the if... then... else statement to test if a key word is located then answer correct else whatever.

    I hope this will help u

  • All times are GMT -7. The time now is 02:02 PM.