If you don't want to use a field for the index, why not leave it as a DO
loop?

Matt

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Munday
Sent: Tuesday, October 23, 2007 4:25 PM
To: RPG programming on the AS400 / iSeries
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.