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



<Buck>
I did not see a getter in
doSomething() which is probably where my brain got stuck.
</Buck>

In java you would make C1Rec private and provide a getC1Reck and setC1Rec with package or even protected scope to enable use of inheritance. As RPG doesn't have inheritance I don't see any need for a getter and setter (inside the module each procedure has access anyway).
If you are using binder language for providing an intermediate scope of visability of variables (it's abuse to use binder language for avoiding rebinds!!!) you could provide setters and getters, export them, but don't take them to the export list - this way all modules bind by copy would have access to the setters and getters, but not to the vars and other components binding the modules by reference (via SRVPGM) wouldn't have access, neither to the vars, nor to the setters and getters (a little bit similar to scope package/protected).

Dieter

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.