× 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.


  • Subject: Re: MOVEA -> EVAL
  • From: Jim Langston <jimlangston@xxxxxxxxxxxxxxxx>
  • Date: Mon, 18 Jun 2001 10:21:07 -0700
  • Organization: Pacer International

Oh, please no!  I had to maintain that type of code way back
when in QuickBasic.  I don't know why, but that code just doesn't
feel "right" to me.  I think because I've come across so many
compilers that don't follow the right to left rule.  Some do left 
to right, in which case you would get different results.

I have always thought, though, that there should be some method
of setting/clearing/initialing more than one variable at a time
in languages, but I don't think that's the answer.

Maybe something like:
C                 Eval    Inz(*Off, *IN01, *IN02, *IN03, *IN04, *IN05)
would be nice, and would be very understandable and self explanatory.
But, the closest I've ever seen is the QuickBasic's method that you 
show here.

Regards,

Jim Langston

Me transmitte sursum, Caledoni!

James David Rich wrote:
> 
> On Fri, 15 Jun 2001, Alan Addison wrote:
> 
> > them.   Some subfiles programs of mine have had to use up to 4 indicators
> > per field (RI, PC, PR, ND) and twenty or more Eval *INxx = *OFF  takes a lot
> > of space.
> 
> How about:
> 
> eval *inaa = *inbb = *incc = *indd = *inee = ... = *off
> 
> Or maybe this can't be done in RPG?
> 
> James Rich
> james@eaerich.com
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.