Click or drag to resize
IUserAccessiableContainsChoice Method
Relevant for single and multiple selection grid questions. Returns true if the value was selected in a specific topic and false otherwise

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

Parameters

inQuesIdx
Type: SystemInt32
The selected question index
inTopicIndex
Type: SystemInt32
The selected topic index
inValue
Type: SystemObject
value to check

Return Value

Type: Boolean
true if the question contains the value in a specific topic or false otherwise
Examples
For the commend: ContainsChoice(QRef(1),3,2) - the following code will return true if answer 2 was selected as one of the answers of topic 3.
See Also