Click or drag to resize
IUserAccessiableGetAnswersChoiceIter Method (Int32, Int32, String, Int32, Boolean)
Relevant mainly for multiple selection grid questions within an iterated chapter. Returns a list of the selected answers in topic inTopic, in a specific nested loops iterations state. If needed, in a randomized order and in a maximal array size.

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

Parameters

inQuesIdx
Type: SystemInt32
the question index
inTopicIdx
Type: SystemInt32
the topic index of the selected answers
inIter
Type: SystemString
the nested loops iteration indexes list
inMaxSize
Type: SystemInt32
maximal size value for the retuned array
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 grid question with 3 topics and 5 answers for each, located inside loop chapter C. GetAnswersChoiceIter(QRef(10), 2, CreateMultiIterationsString(2, 3, 1), 4, false) will return an integers array containing all answer indexes that were coded in topic 2 in question 10, yet up to the first 4 coded values, not 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