You don't need a DONE.FLAG at all
  just loop until the criteria is hit


-----Original Message-----
From: David A. Green <[email protected]>
To: 'U2 Users List' <[email protected]>
Sent: Thu, Apr 19, 2012 3:15 pm
Subject: Re: [U2] EXIT ; EXIT inside a loop


yes adding the case statement solves the issue of hitting unwanted code,
ut... now you've defined your criteria in two places.  How about something
ike:
DONE.FLAG = @FALSE
OR A1 = 1 TO X UNTIL DONE.FLAG
 FOR A2 = 1 TO Y UNTIL DONE.FLAG
   LOOP
     <little twisted logic>
     IF G # H THEN DONE.FLAG = @TRUE
   UNTIL DONE.FLAG DO
     <twisted little logic>
   REPEAT
 NEXT A2
EXT A1
David A. Green
480) 813-1725
AG Consulting

----Original Message-----
rom: [email protected]
mailto:[email protected]] On Behalf Of Boydell, Stuart
ent: Thursday, April 19, 2012 3:05 PM
o: U2 Users List
ubject: Re: [U2] EXIT ; EXIT inside a loop
FOR A1 = 1 TO X until G = H
 FOR A2 = 1 TO Y until G = H
   <little twisted logic>
   case G # H
   <twisted little logic>
nd case
 NEXT A2
ase G # H
 <twisting little logic>
nd case
EXT A1
does that not work for the OPs mise en scène? (see what else I did there
sing case instead of if? More of a Volvo than a Ford a little bit boxy, but
uite safe).
_______________________________
rom: David A. Green
ent: 20-Apr-12 7:36
o: 'U2 Users List'
ubject: Re: [U2] EXIT ; EXIT inside a loop
I think people are missing the original post.  A WHILE or UNTIL on the
OR...NEXT doesn't work for this scenario.  That is why I suggested the
OOP...UNTIL...DO...REPEAT construct.
David A. Green
480) 813-1725
AG Consulting

______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to