Click or drag to resize
IUserAccessiableSetAnswerIter Method (Int32, Int32, DVar)
Relevant for all question types that are part of an iteration. Sets the value of an answer/answers in question inQuesIdx with inValues in the specific inIter iteration. If the question is of type Multiple Selection or a grid (Single Choice Grid, Numeric Grid etc) it will set the relevant answers with the corresponding values in inValues. First answer will be set with the first value, second answer will be set with the second value etc.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
bool SetAnswerIter(
	int inQuesIdx,
	int inIter,
	params DVar[] inValues
)

Parameters

inQuesIdx
Type: SystemInt32
Index of question
inIter
Type: SystemInt32
Iteration number
inValues
Type: SurveyToGo.UserLogic.InterfacesDVar
List of values to set

Return Value

Type: Boolean
Examples
If question 5 is a Single Choice question SetAnswerIter(Qref(5), 3, 2) will set the second value as the answer of the 3rd iteration Asusming question 5 is a Numeric Grid SetAnswer(Qref(5),3, 2,5,7) will set the first topic with the value 2, the second topic with the value 5 and the third topic with the value 7 - all for the 3rd iteration Asusming question 5 is a Single Choice Grid with 3 or more topics and 7 choices then SetAnswer(Qref(5),3, 2,5,7) will set the first topic with the 2nd shoice, the second topic with the 5th choice and the third topic with the 7th choice - all for the 3rd iteration.
See Also