Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] That somewhat theoretical problem.


On Tuesday 20 February 2001 10:03, Jason Rennie wrote:
> > All very well, except that this is a contingency occurring early
> > in the process. Even if the flag =1, the process will still
> > continue down the loop. I'd like to find a way (other than using
> > GOTO) simply to jump out of the loop, jump over the intervening
> > subprograms (which are all concerned with continuing after a
> > correct response has been received) and simply quitting.
>

Oh God, the bad memories this brings back....:-(

Pseudo code;

start of crappy basic program
for x = 1 to <some.big.number>
	do something sensible here <I assume flag is set in here)
	if flag = 1
		exit
	else
	endif
next x
crappy basic program continues, with flag = 1


Not pretty, but you get the idea....