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

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

Parameters

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

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. ContainsChoiceIterOneOf(QRef(10), 3, CreateMultiIterationsString(2, 3, 1), 2, 3) will return 'true' if answer 2 or answer 3 were 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