Re: simple counter variable.

Tech-Archive recommends: Speed Up your PC by fixing your registry



Step through your code.
"If optButtonX.Value" is likely not True.
 
I am designing a multiple choice test application.  I created a module and declared a public variable called Answers.  Within each form under the command button's click code I have if optButtonX.value = true then
answers = answers+1
When I get to the end of the program, where the answer should display the number of questions answered correctly, the program reports that 0 answers were correct?
I have tried setting answers to 0 in the beginning of the program, but it didn't seam to help.
Thanks for any help.
--
 
 
Casey
 
 

Quantcast