Posted by Jose C P15709 on November 29, 20010
In Reply to Multiple choice quiz posted by powerinpink on February 03, 20010: Hi
: Anyone got any code for creating a multple choice quiz?
Show question in label or memo. Show answers choices in tradiogroup and save nr of correct radiobutton integer variable, example: "Correct". When user clicks radiobutton and after that button1 labeled "answer", compare number of selected radiobutton with Correct. If OK, increase integer variable Score. Last, show score in label and show next question plus answers.
Questions, answers and correct numbers are stored in database or in text file.
Related articlesDelphi tips: RadioGroup: disable/enable individual radio button