×

Good News Everybody!

The new search engine is LIVE!

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




It works if var1 is an indicator type (N).

Francis Lapeyre
IS Dept. Programmer/Analyst
Stewart Enterprises, Inc.
E-mail: flapeyre@xxxxxxxx 


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Roger Harman
Sent: Wednesday, December 13, 2006 12:58 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Quick question on readability

Now, I'm confused.  And agreeing with Matt.

Are you trying to replace var1 & var2 with the same value?  Like...
value = 12;
var1 = value;
var2 = value;

If I try this on my V5R2 system, it  won't compile - incomaptible
operands for eval
    var1 = (var2 = value);   

My reading of your code snippet is....

if var2 = value
  var1 = TRUE
else
  var1 = FALSE
endif


Matt.Haas@xxxxxxxxxxx 12/13/2006 10:20:52 AM >>>
<snip>

In terms of my 
  var1 = (var2 = value);

example, I meant assigning the same value to var1 and var2, rather than

comparing var2 to value.  I should have been clearer about that.
<snip>

Sounds like a good reason not to do it then, doesn't it?

Matt


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.