|
>> Is it possible to have a variable that contains the *module to be called
You don't call modules - you call procedures ....
But the answer is yes you can.
Use the ExtProc keyword on the prototype and put a variable name in the
parm. e.g. Extrproc(WhichToCall)
WhichToCall is an procedure pointer and you can load it by doing WhichToCall
= %PAddr('ProcedureA') etc.
There is an example in the RPG Redbook that will give you the basics. I
have to go back to teaching class or I'd be a bit more explicit.
Jon Paris
Partner400
www.Partner400.com
www.RPGWorld.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.