That is why I put in the CONTINUE on the same line as the re-assignment
  That will force it to the next iteration which then will drop to the
  next loop, and drop to next loop and continue from there. If there were
  and references to <,x> X will have been re-initiali[z|s]ed on it's next
  way through.

George

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Allen E. Elwood
>Sent: Monday, January 10, 2005 2:49 PM
>To: [email protected]
>Subject: RE: [U2] How to "exit" out multiple loops?
>
>
>This can cause problems if somewhere in the loops you have
>something like
>
>OUTPUT = DATA.REC<1,X>
>
>!!!
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of CDMI
>Sent: Monday, January 10, 2005 11:22
>To: [email protected]
>Subject: RE: [U2] How to "exit" out mulitple loops?
>
>
>This works regardless of OS you're on:
>
>FOR T=1 TO 10
> FOR Q=1 TO 6
>  FOR X=1 TO 9
>   IF CONDITION THEN X=9 ELSE
>    IF CONDITION THEN
>     X = 9 ; Q = 1
>    END
>   END
>  NEXT X
> NEXT Q
>NEXT T
>
>Steve Trimble
>============================================
>Computerized Data Management, Inc.
>PO Box 3473
>Fayetteville, AR 72702
>(479) 521-5670   9:00am - 6:00pm CST
>[EMAIL PROTECTED]
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of George Gallen
>Sent: Monday, January 10, 2005 12:33 PM
>To: Ardent List
>Subject: [U2] How to "exit" out mulitple loops?
>
>
>For instance.
>
>FOR T=1 TO 10
>    FOR Q=1 TO 6
>        FOR X=1 TO 9
>             IF CONDITION THEN EXIT ; EXIT
>                            OR
>             IF CONDITION THEN CONTINUE T
>        NEXT X
>    NEXT Q
>NEXT T
>
>So the point being if a condition occurs, I want to stop
>   the x and q loops entirely, and continue on with the
>   next t iteration.
>
>This is with UV10
>
>yes, I could use a line label, but then I'd almost be
>forced into a goto. Please no wars on this
>or anything that takes more than 5 additional lines
>
>George
>
>George Gallen
>Senior Programmer/Analyst
>Accounting/Data Division
>[EMAIL PROTECTED]
>ph:856.848.1000 Ext 220
>
>SLACK Incorporated - An innovative information, education and
>management
>company
>http://www.slackinc.com
>-------
>u2-users mailing list
>[email protected]
>To unsubscribe please visit http://listserver.u2ug.org/
>-------
>u2-users mailing list
>[email protected]
>To unsubscribe please visit http://listserver.u2ug.org/
>-------
>u2-users mailing list
>[email protected]
>To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to