CreateMultiIterationsString

string CreateMultiIterationsString(params int[] inIterations)

Description

This function gets a list of iterations indexes of nested loops, and returns this list as a string.
This returned value is to be used in all system loop functions overloads (that by default get a single iteration index)

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inIterations Int[] list / array of iterations indexes (per the Nested Loops levels)

Return Type

string

Example

Loop chapter B is nested in loop chapter A. CreateMultiIterationsString(3, 2) will return this string: "3, 2", that I can later use to pull values from loop questions.
For instance, AnswerIter(QRef(3), CreateMultiIterationsString(3, 2)) will give me the answer of question index 3 that was coded while loop A was on iteration index #3 and loop B was on iteration index #2.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.