IUserAccessiableGetAnswerChoiceIdx Method |
Returns the answer index according to the matching answer text given.
Returns -1 if does not exist
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax int GetAnswerChoiceIdx(
int inQuesIdx,
string inAnswerText
)
Parameters
- inQuesIdx
- Type: SystemInt32
Target Question Index - inAnswerText
- Type: SystemString
Return Value
Type:
Int32An 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