Click or drag to resize
IUserAccessiableGetAnswerChoiceIdx Method
Returns the answer index according to the matching answer text given. Returns -1 if does not exist

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
int GetAnswerChoiceIdx(
	int inQuesIdx,
	string inAnswerText
)

Parameters

inQuesIdx
Type: SystemInt32
Target Question Index
inAnswerText
Type: SystemString

Return Value

Type: Int32
An Integer
Examples
If I want to get the answer index of a specific answer according to its text I can use this function. For example: GetAnswerChoiceIdx(5,” Wolkswagen”); will return the answer index of the answer with the text: ” Wolkswagen”
See Also