Nikki Anderson wrote:
> > Any suggestions? > > Nikki
I suppose the variables are being reset each time a page is entered. You need to keep track of whether the question was answered right or wrong in a variable that does not get reset each time a quiz page is entered. I would use a List based on the questions number(s), set the corresponding element to 1 when the question was answered correctly the first time and set it to -1 perhaps when the question was answered incorectly. That way, zero will indicate the question has not been answered yet.
qAnsList := Array(0, numQuestions)
if FirstTryCorrect then qAnsList[qNumber] := 1 else qAnsList[qNumber] := -1 end if
There are of course numerous variations on this theme and you'll have to adopt it for your specific needs. You'll need to initialize the list each time a new quiz is taken or else use a different list for each quiz. You could use a list of lists (2 dimensional list).
HTH
Charles Rholl TOTO Multimedia
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)