|
Hi Jim, Oh. The way I read the original question (which was a bit terse Rob) was that he couldn't do a FOR/ENDFOR loop in free-form RPG because he wasn't using the y variable. So, Rob, are you saying that you can't use FOR Y=1 TO X; EVAL A = B; ENDFOR; in free-form RPG? I haven't had the time to play with it yet. Regards, Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: "Jim Langston" <jlangston@celsinc.com> To: <rpg400-l@midrange.com> Sent: Monday, October 01, 2001 5:15 PM Subject: RE: Free format DO, or make index optional > I believe what he is saying is, he doesn't need the var y so why does he > have to use it? > Why can't he just say for 1 to x without assigning a variable? > > My answer would be, because that's how for loops work, RPG being the > exception. > > Regards, > > Jim Langston > > -----Original Message----- > <SNIP> > > Hi Rob, > > Are you saying that the compiler requires you to use y somewhere within the > for/endfor loop? If not, simply don't use it. > > hth, > Peter Dow > <SNIP> > > ----- Original Message ----- > From: <rob@dekko.com> > <SNIP> > > I had a 1 do x. > > I wanted to make that free form. Can't be done. I converted it to > > for y=1 to x > > But I have no use for y, in this case. > <SNIP> > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
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.