Click or drag to resize
IUserAccessiableGetAnswerChoiceIdxByCode Method
Returns the answer index according to the matching answer ///code given.

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

Parameters

inQuesIdx
Type: SystemInt32
Target Question Index
inAnswerCode
Type: SystemString
Answer code

Return Value

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