|
I don't want to prolong this any longer than necessary since Jeff
appears to have found his solution. However, I believe this example may
be flawed. I say maybe because it depends on how you number your level
breaks. If you sequence your breaks as L3 being the lower level break
and L1 being the higher level break this will work but is the opposite
of the cycle. If you use the cycle ordering of L1 being the lower level
and L3 being the higher level this example will execute higher level
breaks when the break occurred at a lower level.
It should be something like this:
If L3
Do L3 stuff
Do L2 stuff
Do L1 stuff
EndIf
If L2
Do L2 stuff
Do L1 stuff
EndIf
If L1
Do L1 stuff
EndIf
Rick
-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of RPower@xxxxxxxxxx Sent: Wednesday, July 19, 2006 11:20 AM To: RPG programming on the AS400 / iSeries Subject: RE: Skeleton for level breaks Wouldn't you check them in the order: if L1 L3 stuff L2 stuff L1 stuff iter endif if L2 L3 stuff L2 stuff iter endif if L3 L3 stuff iter endif so that if all 3 are on, then they complete in the correct order? Ron Power Programmer Information Services City Of St. John's, NL P.O. Box 908 St. John's, NL A1C 5M2 709-576-8132 rpower@xxxxxxxxxx http://www.stjohns.ca/ ______________________________________________________________ _____________ Success is going from failure to failure without a loss of enthusiasm. - Sir Winston Churchill
Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.