home *** CD-ROM | disk | FTP | other *** search
- property quizParam
-
- on birth me, quizNumber
- set quizInfo to line 2 + ((quizNumber - 1) * 11) to 1 + (quizNumber * 11) of field "qText"
- set the quizParam of me to [#question: line 1 of quizInfo]
- setaProp(the quizParam of me, #correct, line 10 of quizInfo)
- setaProp(the quizParam of me, #topic, line 11 of quizInfo)
- repeat with i = 2 to 5
- do("setaProp the quizParam of me, #ans" & i - 1 && ", line" && i && "of quizInfo")
- do("setaProp the quizParam of me, #fb" & i - 1 && ", line" && i + 4 && "of quizInfo")
- end repeat
- return me
- end
-