S
Simon L. Prinsloo
Guest
If you need access to it in derived classes, you can make it protected. If you need the "SHARED" effect, you define it normally in the code where it would normally be "NEW SHARED" and you define it REFERENCE-ONLY in the code where you will reference it. (The definition of the TEMP-TABLE / DATASET is the only place left n the language where I prefer to use include files.) There after you bind to it by passing it as a parameter TABLE .... BIND. Another way will be to have the full definition on both side and pass the table as a proper table and then pass it as parameter TABLE .... BY-REFERENCE. This prevents the table from being copied and just pass the reference, but it is more prone to problems where you invoke one method an work with the passed table, but end up referencing the empty local table in a later call. It is however much more flexible in that it allows you to pass TABLE-HANDLES on either side (or both), enabling you to make more generic code.
Continue reading...
Continue reading...