02-09-2023, 02:01 PM
@Dimster
Yes because he uses a SHARED variable declared into the main... in other words he uses one of the way to build a controlled recursive calling.
at 38# you can see
and in recursive SUB
I hope to be clear and understandable
Quote:But Steve's code, in his Recur subroutine, appears to have a successful counter working.
Yes because he uses a SHARED variable declared into the main... in other words he uses one of the way to build a controlled recursive calling.
at 38# you can see
Code: (Select All)
DIM SHARED AS LONG DataCount
and in recursive SUB
Code: (Select All)
IF DataCount = 0 THEN SEEK #1, 1 'move to the start of the file 'may need to change to 0 for 0 index counting
I hope to be clear and understandable