× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



ok i'll chime in.

LEAVE and ITER are not even close to a GOTO/TAG. leave and iter are
totally restricted to the current processing loop/structure and aren't
useable outside of that loop, goto/tag however can be used at any point to
jump here, there and everywhere (many times in 500 different places at
once!) since goto/tag are not restricted to a specific processing
loop/structure, there are no real boundaries...with leave/iter you're
bound to a specific process structure which goto/tag *could* be used that
way unfortunately (in my experience) that's not the case.

Thanks,
Tommy Holden



From:
rob@xxxxxxxxx
To:
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Date:
01/09/2009 11:32 AM
Subject:
Re: Good places to use "The Cycle" in today's RPG was->Re: FW:
Niftiest thing(s) you have done in RPG ILE or /FREE
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx



In that case then IF and Do and For and Select are nothing but GOTO's with

an implicit tag. No, I think iter and leave are different than goto.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.