IUserAccessiableGetAnswerChoiceIdxByCode Method |
Returns the answer index according to the matching answer ///code given.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax int GetAnswerChoiceIdxByCode(
int inQuesIdx,
string inAnswerCode
)
Parameters
- inQuesIdx
- Type: SystemInt32
Target Question Index - inAnswerCode
- Type: SystemString
Answer code
Return Value
Type:
Int32An 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