View Single Post
Old Jul 21st, 2008, 9:13 AM   #12
Steel9561
Newbie
 
Join Date: Apr 2008
Posts: 8
Rep Power: 0 Steel9561 is on a distinguished road
Re: Completely new, please help

Hi everyone,

I am making a quiz program in Visual Basic 6.0, where the question is answered in a text box, and, if correct, a certain number of marks is added to the displayed score as you go. However, i am confused about what coding for this needs to be done, and what the scored is displayed in (a label perhaps?). So, I ask, could someone give me so example code so i get the idea how to approach this? I know its a amatuer question, but I am having trouble getting my head around what coding to use in certain situations ('if' statements, calculations, etc). Also, could someone give me a good site to learn about this stuff?

Many Thanks in advance

------------------------------------------------------------------------------------------------------
Ok, basically here you are talking about an if statement.

All you need to do is to create an if statement that checks for the accuracy fo the answer. Something like:

"IF textbox.text="AnswerCorrectHere" THEN

score=score+1

You use score to accumulate the number of correct answers. I hope this gives you an idea.
Steel9561 is offline   Reply With Quote