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



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

Follow-Ups:

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.