IUserAccessiableGetAnswersChoice Method (Int32, Int32, Int32, Boolean) |
Relevant mainly for multiple selection grid questions. Returns a list of inMaxSize selected answers (or all of them if inMaxSize is larger than the number of selected answers) in a randomized order
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax int[] GetAnswersChoice(
int inQuesIdx,
int inTopicIdx,
int inMaxSize,
bool inRandom
)
Parameters
- inQuesIdx
- Type: SystemInt32
The selected question index - inTopicIdx
- Type: SystemInt32
- inMaxSize
- Type: SystemInt32
The max size of the returned array of answers - inRandom
- Type: SystemBoolean
True to get a randomized order of the answers in the returned array or False to keep the order as it is
Return Value
Type:
Int32array of the answers that were selected
Examples
For the commend: GetAnswersChoice(QRef(1),4,3,true) - the following code will return an array with the answers selected in the 4th
topic. The max size of the return array is 3 and in a randomized order
See Also