Click or drag to resize
IUserAccessiableAppendOpenEndedTextChoiceIter Method (Int32, Int32, String, String)
Relevant mostly for open ended grid questions. This function append the text inText to an existing text in topic inTopic in question inQuesIdx, in a specific nested loops iterations state, and set the new text in this topic for this iterations state.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
bool AppendOpenEndedTextChoiceIter(
	int inQuesIdx,
	int inTopic,
	string inIter,
	string inText
)

Parameters

inQuesIdx
Type: SystemInt32
the question index
inTopic
Type: SystemInt32
the topic index
inIter
Type: SystemString
the nested loops iterations state
inText
Type: SystemString
the text to append

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 an open ended grid question, located inside loop chapter C. AppendOpenEndedTextChoiceIter(QRef(10), 2, CreateMultiIterationsString(2, 3, 1), "Hello") will append the text "Hello" to the existing text entered in topic 2 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, and will set the new text (with the new addition) to topic 2 in question 10 for this iterations state.
See Also