Click or drag to resize
IUserAccessiableContainsChoiceIter Method (Int32, Int32, Object, String)
Relevant for single and multiple selection grid questions. Returns true if the value was selected in a specific topic in a specific nested loops iterations state and false otherwise.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
bool ContainsChoiceIter(
	int inQuesIdx,
	int inTopicIndex,
	Object inValue,
	string inIter
)

Parameters

inQuesIdx
Type: SystemInt32
the question index
inTopicIndex
Type: SystemInt32
the topic index to check if inValue is contained in
inValue
Type: SystemObject
value to check if contained in inTopicIndex
inIter
Type: SystemString
the nested loops iteration indexes list

Return Value

Type: Boolean
bool
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 5 topics and 3 answers, located inside loop chapter C. ContainsChoiceIter(QRef(10), 3, 2, CreateMultiIterationsString(2, 3, 1)) will return 'true' if answer 2 was coded in topic 3 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