[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Advanced Programming Structures
This code misses the point. It tries to avoid GOTO's because they are bad
programming practice. Yet at the same time, changing the for-loop variable
II within the loop is also bad programming practice.
Keith Olson <s p a m t r a p 0 0 7 @ y a h o o . c o m> wrote in message
tk35h8spqrdqaa@corp.supernews.com">news:tk35h8spqrdqaa@corp.supernews.com...
> FOR II = 0 TO 1
> .
> .
> .
> II=1
> IF X=0 THEN II=0
> IF Y=0 THEN II=9
> IF Y=99 THEN II=10
> NEXT II
> IF II=10 THEN PRINT "AT BOTTOM"
> IF II=11 THEN PRINT "AT TOP"
>