Click or drag to resize
IUserAccessiableSetAnswerWithAdditionalIter Method (Int32, Int32, String, DVar)

Note: This API is now obsolete.

Relevant for all question types. Sets the value of an answer/answers in question inQuesIdx with inValues including the value of the Other(Specify)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#
[ObsoleteAttribute("Use SetAnswerWithAdditionalTextsIter instead")]
bool SetAnswerWithAdditionalIter(
	int inQuesIdx,
	int inIter,
	string inData,
	params DVar[] inValues
)

Parameters

inQuesIdx
Type: SystemInt32
Index of question
inIter
Type: SystemInt32
Iteration number
inData
Type: SystemString
Text to use in the Other(Specify) field
inValues
Type: SurveyToGo.UserLogic.InterfacesDVar
List of values to set

Return Value

Type: Boolean
Examples
If question 5 is a Single Choice question SetAnswerWithAdditionalIter(Qref(5),3, "Dooblo", 2) will set the second value as the answer and fill in the Other(Specify) field with Dooblo - - all for the 3rd iteration.
See Also