Int SumMulti(int inQuesIdx)
Description
Valid for a Numeric Grid type questions. The function calculates the sum on a specific question
Parameters
The following is a list of parameters the functions receives
Parameter | Type | Description |
---|---|---|
inQuesIndex | Int | the question index |
Return Type
Int
Overloads
List of overloads for this function:
Int SumMulti(int inQuesIdx, int inOffset)
Int SumMulti(int inQuesIdx, int inOffset, params int[] inIgnoreAnswers)
Parameter | Type | Description |
---|---|---|
inQuesIdx | Int32 | Target question |
inOffset | int | Offset |
inIgnoreAnswers | Int[] | Array on answers to ignore |
Examples
- For question 1 the following code will return the sum of the answers selected in the question
SumMulti(QRef(1)); - For question 1 the following code will return the sum with the offset 1 of the answers selected in the question
SumMulti(QRef(1),1); - For question 1 the following code will return the sum (without the ignored answers) with the offset 1 of the answers selected in the question
SumMulti(QRef(1),1,2,4);
Comments
Please sign in to leave a comment.