Click or drag to resize
IUserAccessiableGetAnswers Method (Int32, Boolean)
Relevant for all questions. Returns a list of the selected answers depending on the question type in a randomized order. For example for a Single Choice question it would rerutn the selected answer (equivalent to Answer(inQuesIdx)). For a Multiple Selection question it would return a list of all the selected answers in a randomized order.

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

Parameters

inQuesIdx
Type: SystemInt32
Index of question
inRandom
Type: SystemBoolean
true or false

Return Value

Type: Int32
Array containing the selected answers indexes
Examples
For a Multiple Selection question with answers 1,2,3,4,5,6 and 3,5 selected The following code will return one of the 2: - "First value selected is: 2 Second value selected is: 5" - "First value selected is: 5 Second value selected is: 2" var i=GetAnswers(CurrQues, true); Prompt("First value selected is: " + i[0] + " Second value selected is: " + i[1]);
See Also