Log in

View Full Version : Key Words


legend232
Jan 16, 2008, 06:27 AM
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?

Ache
Mar 1, 2008, 04:20 AM
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