|
-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Larry Ducie
If you feel the transaction code does NOT form part of the
state of the module then please don't create a GetSetInitView
procedure to manage it as a local static variable. You could
consider using ANOTHER module. You would store the variable
as a global variable in that module and provide various
procedures to Get/Set/Init/View the value held there. The
variable is now only viewable by your procedures designed to
work with it. You could go further and place ALL transaction
code related variables and accessor/mutator procedures in
this module. Further still, you could wrap it in a service
program and call it TRANSCODE. That way you have an object
that represents the transaction code, all of its associated
attributes, and all of its functions.
Got to be better than using local static variables and
horribly disfigured procedures for this.
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.