IUserAccessiableSetAnswerChoiceIter Method (Int32, Int32, String, DVar) |
This function sets the relevant answers inValues in the specific topic inTopic, in a specific nested loops iterations state.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax bool SetAnswerChoiceIter(
int inQuesIdx,
int inTopic,
string inIter,
params DVar[] inValues
)
Parameters
- inQuesIdx
- Type: SystemInt32
the question index - inTopic
- Type: SystemInt32
the topic index to set answer in - inIter
- Type: SystemString
the nested loops iteration indexes list - inValues
- Type: SurveyToGo.UserLogic.InterfacesDVar
the values list to set
Return Value
Type:
Boolean bool
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 grid question with 5 topics and 3 answers to each topic, located inside loop chapter C.
SetAnswerChoiceIter(QRef(10), 4, CreateMultiIterationsString(2, 3, 1), 2, 3) will set answers 2 and 3 in topic 4 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.
See Also