Click or drag to resize
IUserAccessiableGetAnswers Method (Int32)
Relevant for all questions. Returns a list of the selected answers depending on the question type. 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

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

Parameters

inQuesIdx
Type: SystemInt32
Index of question

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 "First value selected is: 2 Second value selected is: 5" var i=GetAnswers(CurrQues); Prompt("First Selected is: " + i[0] + " Second value selected is: " + i[1]);
See Also