Click or drag to resize
IUserAccessiableAnswerChoiceSelectionIter Method (Int32, Int32, Int32, String)
Relevant for multiple selection grid questions. Returns the index of the answer that was chosen in a specific choice in the specific topic, during a specific nested loops iterations state.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
DVar AnswerChoiceSelectionIter(
	int inQuesIdx,
	int inTopicIdx,
	int inChoiceIdx,
	string inIter
)

Parameters

inQuesIdx
Type: SystemInt32
the question index
inTopicIdx
Type: SystemInt32
the topic index of the selected answer
inChoiceIdx
Type: SystemInt32
the choice index of the selected answer
inIter
Type: SystemString
the nested loops iteration indexes list

Return Value

Type: DVar
DVar
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 multiple selection grid question with 3 topics and 5 answers for each, located inside loop chapter C. AnswerChoiceSelectionIter(QRef(10), 3, 2, CreateMultiIterationsString(2, 3, 1)) will return the index of the second answer that was coded in topic 3 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