string SelectedAnswerTextIter(int inQuesIdx, string inIter)
Description
Returns the text of the selected answers in an iteration
Parameters
The following is a list of parameters the functions receives
Parameter | Type | Description |
---|---|---|
inQuesIdx | Int32 | Question Index |
inIter | string | The iteration index |
Return Type
string
Overloads
List of overloads for this function
string SelectedAnswerTextIter(int inQuesIdx, string inIter, bool inUseOtherSpecText)
Parameters for overloads:
Parameter | Type | Description |
---|---|---|
inQuesIdx | Int32 | Question index |
inIter | string | The iteration index |
inUseOtherSpecTex | bool | 'true' to return additional text entered or 'false' otherwise |
Examples
- Loop chapter C is nested in Loop chapter B that is nested in loop chapter A. All loops chapters iterates a maximal number of 3 iterations each.
Question index 10 is a single choice question with 5 answers, located inside loop chapter C.
SelectedAnswerTextIter(QRef(10), CreateMultiIterationsString(2, 3, 1)) will return the text of the selected answer in question 10, while loop A was in iteration index 2, loop B was in iteration index 3 and loop C as in iteration index 1. - Loop chapter C is nested in Loop chapter B that is nested in loop chapter A. All loops chapters iterates a maximal number of 3 iterations each.
Question index 10 is a single choice question with 5 answers, located inside loop chapter C. Answer 5 is "Other specify" answer.
SelectedAnswerTextIter(QRef(10), CreateMultiIterationsString(2, 3, 1), true) will return the text of the selected answer in question 10, while loop A was in iteration index 2, loop B was in iteration index 3 and loop C as in iteration index 1.
If the selected answer was answer index 5 - the returned value will be the additional text entered for that answer.
Comments
Please sign in to leave a comment.