I need to know if I will cause chaos if I continually exit from a subroutine while in a FOR - NEXT loop or an IF - END IF.
For example:
Sub TEST
FOR b = 1 to 100
IF b = 50 THEN
a$ = "Help"
EXIT SUB
END IF
NEXT b
END SUB
Will this cause a problem if I continually EXIT from the SUB in the middle of the FOR - NEXT loop or the IF - END IF.
I hope someone can actually understand what I mean.
Regards,
Brian.
For example:
Sub TEST
FOR b = 1 to 100
IF b = 50 THEN
a$ = "Help"
EXIT SUB
END IF
NEXT b
END SUB
Will this cause a problem if I continually EXIT from the SUB in the middle of the FOR - NEXT loop or the IF - END IF.
I hope someone can actually understand what I mean.
Regards,
Brian.
Comment