Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 07:25, 14 December 2011 by Cg_pham (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Single Grid

An identifier with array type is created for each Single Grid question. The array is zero-index based, its size is equal to the number of sub questions. It contains number items, which are the selected answer option values for each sub question.

Example

if (Q6[0] == 1)//check if the answer option value 1 has been chosen for the first sub question

//do something

else if (Q6[1] == [1-3]//check if any answer option having value from 1 – 3 has been chosen for the second sub question

//do something else

...

Answer option can be set to selected by assigning its value to the sub questions.

Example

Q6[0] = 1;

Q6[1] = 3;

Q6[2] = 2;

Q6 = {1,3,2};//serve the same purpose as the 3 previous lines

Back to: Single