IUserAccessiableGetParentIterationIndex Method |
This function gets a level number within the nested loops and returns the index of the current iteration in that loop level.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax int GetParentIterationIndex(
int inParentLevel
)
Parameters
- inParentLevel
- Type: SystemInt32
an integer indicating the loop level (how much levels to go up from the loop I'm currently in)
Return Value
Type:
Int32 int
Examples
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 in this case return the value 2.
"1" sent as the parameter to the function, is because loop A is one level above loop B.
See Also