![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Jul 2007
Posts: 6
Rep Power: 0
![]() |
Thanks so much everyone, I have almost worked it all out. If i type the answer, backspace it, and type it in again, it gives the user another score. How could I resolve this?
vb Syntax (Toggle Plain Text)
Last edited by verion24; Jul 21st, 2007 at 7:40 AM. |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Apr 2008
Posts: 8
Rep Power: 0
![]() |
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.
__________________
Opening you the door to success in the best freelance website: Rent a Coder |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Completely oblivous | CodeJunkie | Assembly | 30 | Aug 20th, 2005 11:03 AM |
| Completely new to VB.NET | Jaymes | Visual Basic .NET | 4 | May 28th, 2005 7:04 PM |
| Completely lost, help needed | bliznags | C++ | 2 | Mar 19th, 2005 4:44 PM |