As i said in previous message, i have a pre and post test.
Another problemm is they can do the post test as mant times as thy wish, how do i track the score from each attempt ?
Yeah, I am sending to a text file. However, the second attempt will overwrite the first as i am storing it in a variable.
I need to track when the user has a second attempt at the final test.
I wonder if i can put a counter on the test button, so the second time it is clicked it records the results separatly ???
Database would be the best alternative, but could be complex to implement at this stage of your effort. You said you are writing to a text file. Perhaps you could write multiple text files (one for each attempt): FinalExamResults1.txt, FinalExamResults2.txt, and so on. You would have to write code to check for the multiple iterations, but it shouldn't be too difficult. I can assist with that as well, if necessary . . .
Just have a give a post test results a extra value
have the value add a 1 to itself everytime the button is used
then append this value to the file name
Tvalue = Tvalue + 1
writetofile ("posttest""tvalue"
i am not familiar with the code in authorware but my idea will work
you want to have a diff file name
I think you have used the function WriteExtFile() to save information. Perhaps, you can try the function AppendExtfile() to create the text file and append the information without overwrite.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.