IUserAccessiableAnswerChoiceIter Method (Int32, Int32, String) |
Relevent mainly for single choice grid and numeric choice grid questions, that were included inside a loop chapter.
Returns a DVar value type, of the index (in a single choice grid) or the text (in a numeric grid) of the answer coded for inChoiceIdx in inQuesIdx, during a specific nested loops iterations state.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax DVar AnswerChoiceIter(
int inQuesIdx,
int inChoiceIdx,
string inIter
)
Parameters
- inQuesIdx
- Type: SystemInt32
the question index - inChoiceIdx
- Type: SystemInt32
the topic index of the selected answer - inIter
- Type: SystemString
the nested loops iteration indexes list
Return Value
Type:
DVarDVar
Examples
Loop chapter C is nested in Loop chapter B that is nested in loop chapter A. All loops chapters iterates a maximal number of 3 iterations each.
Question index 10 is a single choice grid question with 3 topics and 5 answers for each, located inside loop chapter C.
AnswerChoiceIter(QRef(10), 2, CreateMultiIterationsString(2, 3, 1)) will return the answer that was coded in topic 2 in question 10, while loop A was in iteration index 2, loop B was in iteration index 3 and loop C as in iteration index 1.
See Also