GetParentIterationIndex

int GetParentIterationIndex(int inParentLevel)

Description

Gets a level number within the nested loops and returns the index of the current iteration in that loop level.

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inParentLevel Int32 Loop chapter level Index in the Nested Loops structure

 

Return Type

Int32

Example

Loop chapter B is nested in loop chapter A. Loop A iterates a maximal number of 3 iterations.
Loop A is currently on its second iteration (iteration index 2).
Calling GetParentIterationIndex(1) from inside Loop B, will return the value 2.
"1" is sent as the parameter to the function, because loop A is one level above loop B.

 

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.