bool SetAnswerChoiceAdditionalTextsIter(int inQuesIdx, int inTopicIndex, string inIter, params AnswerWithAdditionalText inValues)
Sets multiple answers\single answer with additional texts in a specific iterations status (when using nested loops). Use CreateAnswerWithAdditional() to create AnswerWithAdditionalText objects, Relevant for Single/Multi Choice Grid questions.
The following is a list of parameters the functions receives
|inQuesIndex||Int||the question index|
|inTopicIndex||Int||the topic index|
|inIter||string/int||the iteration index|
|inValues||AnswerWithAdditionalText||The indexes to set, built as AnswerWithAdditionalText objects|
Question index 2 is a Single Choice Grid, with 5 answers: a, b, c, d, e and 3 topics T1, T2, T2
This question is located under loop chapter B which is under loop chapter A.
Answers "c" and "e" are defined as "Other (specify)" answers.
The following code:
SetAnswerChoiceAdditionalTextsIter(QRef(2), 2, CreateMultiIterationsString(6,4), CreateAnswerWithAdditional(2, ""), CreateAnswerWithAdditional(3, "Text to answer c"), CreateAnswerWithAdditional(5, "Text to answer e"))
will set answers 2, 3, and 5 in question 2, along with the "Text to answer c" as the additional text to answer 3 and the "Text to answer e" as the additional text to answer 5, under iteration #6 of loop A and iteration #4 of loop B topic 2.