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



> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx
> [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Kurt Anderson
> Sent: Thursday, April 21, 2005 3:00 PM
> To: RPG programming on the AS400 / iSeries
> Subject: RE: Parameter Procedure return value in the parm list
> 
> 
> Charles,
> 
> I realize that the prototype tells you all you need to know, 
> but ideally
> I'd like the code to tell me that.  Such as, in your example...
>       CalcTax( orderAmt : taxAmt ); 
> ... The amount being changed here is not explicit.  As a programmer I
> now need to page up or whatever to find the prototype to see which
> field, if any, is being changed.  This is what I'd like to get around
> (w/o writing comments).

Ah, but if you're using WDSC, then the outline view shows you which params are 
VALUE or CONST.  No need to page the source itself up.

My personal mantra...if you're trying to use SEU to do true RPG IV 
programming...you're wrong.
Two main reasons:
1) The usefulness of the outline view
2) How easy "Auto-Complete" aka "Code Assist" makes it to use longer names.

> 
> >There is no way to show that a parm will always be changed 
> or that the
> parm is only used for output instead
> >of input/output.
> Then it looks like what I'm looking for can't be done.

Correct.

> 
> >This is one reason I try to make all params input only and 
> use a return
> value for the results of my 
> >procedures.
> I hear ya.  I've just been comparing, mentally, how a subroutine that
> exists on our system now would best appear as a procedure.
> 
> Thanks for your input,
> 

No problem.

Charles


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