×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




With a for loop it's the only way to do it..

I generally always define a variable i as an integer in just about every
program. I used for all kinds of things from for loops to %lookups() to
whatever might need an integer.

James R. Perkins



Robert Munday <rwmunday@xxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
23.10.2007 13:25
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
FOR With No Index







How would you replace this simple DO statement with a FOR in /Free?

C Do #COVERAGES Do Number Of Coverages

Should I make up a dummy index field to handle the FOR?

FOR DummyIndex = 1 To #COVERAGES;

Is there a more direct and logical way to do this? Sure, I could create a
dummy index field but it would make me feel so cheap.


Robert Munday
Munday Software Consultants
Montgomery, AL
on assignment in Nashville, TN



This thread ...

Replies:

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

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