What happens if I, inside of a while/endwhile loop, call recursively a macro that itself has another while/endwhile loop and calls exitwhile() inside the recursive call?
; recursive loop while(Dcondition)
some_Dcondition_changing bla… bla… EndWhile macroexit
; Main loop while(Zcondition)
ExitWhile some_Zcondition_changing bla… bla… endwhile more_intructions MacroExit
The problem I see is if I reentry “macro-recursive” a the second time, Macroexit returns to “more_instructions” at “some_running_context” (just after the Main Loop endWhile). It should return to ‘if (var1==””)’ at the previous
It is like the second call to “macro-recursive” overwrites the first
“macro-recursive” while/endwhile loop return point, and the second ExitWhile exits from the while/endwhile at “some_running_context” and not from first
In short: second (and subsequent??) call to macro-recursive is ExitWhile()ing from “some_running_context” while loop. First call exits ok.
Any directions to share?
Is this explanation too complicated to understand?