IUserAccessiableGetAnswersIter Method (Int32, Int32) |
Relevant for all questions that are within an iterated chapter.
Returns a list of the selected answers in a specific itreation depending on the question type.
For example for a Single Choice question it would rerutn the selected answer (equivalent to AnswerIter(inQuesIdx, inIter)).
For a Multiple Selection question it would return a list of all the selected answers
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax int[] GetAnswersIter(
int inQuesIdx,
int inIter
)
Parameters
- inQuesIdx
- Type: SystemInt32
Index of question - inIter
- Type: SystemInt32
Iteration number
Return Value
Type:
Int32Array containing the selected answers indexes
Examples
For a Multiple Selection question with answers 1,2,3,4,5,6 and 3,5 selected in the third iteration
The following code will return "In the 3rd iteration the First value selected is: 2 Second value selected is: 5"
var i=GetAnswersIter(CurrQues, 3);
Prompt("In the 3rd iteration the First value selected is: " + i[0] + " Second value selected is: " + i[1]);
See Also