Click or drag to resize
IUserAccessiableSetAnswerWithAdditionalIter Method (Int32, String, 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 nested loops iterations state. 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,
	string inIter,
	string inData,
	params DVar[] inValues
)

Parameters

inQuesIdx
Type: SystemInt32
the question index
inIter
Type: SystemString
the nested loops iteration indexes list
inData
Type: SystemString
text to use in the "Other specify" field
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 mutliple selection question with 5 answers, located inside loop chapter C. Answer 5 is an "other specify" answer. SetAnswerWithAdditionalIter(QRef(10), CreateMultiIterationsString(2, 3, 1), "Hello", 2, 3, 5) will set answers 2, 3 and 5 in question 10, and also set the text "Hello" in the "Other specify" field of answer 5, 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