Click or drag to resize
IUserAccessiableGetAnswersIter Method (Int32, String, Boolean)
Relevant for all questions that are within an iterated chapter. Returns a list of the selected answers in a specific nested loops iterations state, if needed, in a randomized order. For example, for a Multiple Selection question it would return a list of all the selected answers.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
int[] GetAnswersIter(
	int inQuesIdx,
	string inIter,
	bool inRandom
)

Parameters

inQuesIdx
Type: SystemInt32
the question index
inIter
Type: SystemString
the nested loops iteration indexes list
inRandom
Type: SystemBoolean
'true' to return the values in a random order, or 'false' otherwise

Return Value

Type: Int32
int[]
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 question with 5 answers, located inside loop chapter C. GetAnswersIter(QRef(10), CreateMultiIterationsString(2, 3, 1), true) will return an integers array containing all answer indexes that were coded in question 10 in a randomized order, 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