Hello all, I was hoping someone could help me with my dilemma:
I have created a very brief 10 question survey and want to tabulate the answers.
The survey consists of 9 questions which cycle to the next question after each selection and there are 4 radio buttons as a group (each radio button should be worth 0-3 points).
What I am having trouble with is tabulating the numerical value of each survey response and returning it at the end in the field "Score".
I have declared a variable qTab and on each radio button have included the following object script:
Code: Select all
on mouseUp
global qTab
evaluate(the short name of me)
qTab +1 --it is qTab +2, and qTab +3 for the other 2 buttons of value.
end mouseUp
Code: Select all
On openCard
global qTab
nextQuestion
put qTab into fld "Score"
end openCard
command nextQuestion
global qNbr, qArray
put qArray[qNbr]["question"] into fld "Question"
end nextQuestion