PDA

View Full Version : Tracing Arrays



dilpreet
June 20th, 2009, 02:28 AM
Hey

I have two arrays
arrscore and arrname i push the percentage to arrscore when the person has finished the quiz and the name to arrname.

when the quiz is done once and i trace both of the arrays it's fine but when the quiz is done twice instead of giving all the results in the arrays it only traces the latest one.

Can you help please

.ral:cr
June 20th, 2009, 04:03 AM
i think with so much details we can't help you.

BoppreH
June 20th, 2009, 02:32 PM
You are either resetting the array when the quiz restarts or your trace code is wrong.

Coldmind
June 20th, 2009, 05:03 PM
The probalility is when you are restarting the quiz, the arrays are getting nullified on your initialize method... names = new array or whatever you are doing, but it would be beneficial for you to show your code for a more educated guess.