|
-
Oct 17th, 2006, 01:31 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Repeating msgbox...
Hello everybody,
I have a question (vb 2005).
I have an inputbox that askes the user a question.
If the user types in the right anwser a label appears with the text "good job!".
If the user anwsers the wrong anwser than a label appears with the text "Wrong!".
Here comes my problem.
If the user types in nothing ("") I want a msgbox to appear that tells the user that he has to insert an anwser.
After the user clicks ok on the msgbox, again the inputbox appears.
Again if the user types nothing the msgbox appears, etc, etc,,,
Can anybody help my figure out the structure of this problem.
So far I got the followong code:
if inputbox = "Good Anwser" then
label.text = "Great!"
elseif inputbox = "Wrong Anwser" then
label.text = "Wrong!"
else inputbox = "" then
msgbox("you must type in an anwser")
(how can I return to the point that the inputbox appears???)
end if
Thanks very much in advance for your help guys...
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
|