Why does my Loop end after 11 Loops?
#41
So ... Holey Smoke ... some very informative stuff here. I'm going to print this off and keep it in my Basic Learning How To book.

On the issue of Recursion and a Counter, Tempodi remarks


Quote:DataCount = DataCount + 7 ' this is another alone variable that does not pass to the next recursive calling

If DataCount < 14 Then Recur ' this condition it will never happen because DataCount at each run is always 0 and becomes 7


But Steve's code, in his Recur subroutine, appears to have a successful counter working. Is there a reset back to zero for all Recursive calls as a normal use of Recursion or this reset to zero happening just in Tempodi's structure of his Recursion subroutine? I seem be getting my counters resetting only when I exit my Recursive routine but working ok within the Recursive calls but, while messing with a redesign of my Recursion call routine, I was able to jump from 11 loops to the 4000 loops, I then did a little more tinkering and now have endless looping going on. I never thought to look at an issue with the counter.
Reply


Messages In This Thread
Why does my Loop end after 11 Loops? - by Dimster - 02-06-2023, 07:08 PM
RE: Why does my Loop end after 11 Loops? - by Dimster - 02-08-2023, 03:39 PM



Users browsing this thread: 7 Guest(s)