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




>
> why is complier not able to recognize that factor 2 on 'CALLP
> genChgA(ix)' statement is an array of procptr?  What did I do wrong?
> Other than using CALLB, is there a better way to go around it.
>

CALLP basically executes a prototype.   It does not execute a procptr.
Instead, you have to make a prototype that references your procptr,
and call that...

for example:

D genChg1         pr
D genChg2         pr
D genChg3         pr

D genChgDs        DS
D   genChg1Ptr                    *   procptr inz(%paddr('genChg1'))
D   genChg2Ptr                    *   procptr inz(%paddr('genChg2'))
D   genChg3Ptr                    *   procptr inz(%paddr('genChg3'))
D   genChgA                       *   dim(3) procptr overlay(genChgDS)

D ix              s              1S 0

D CallMePtr       S               *   procptr
D CallMe          PR                  ExtProc(CallMePtr)

c     *entry        plist
c                   parm                    ix

c                   eval      CallMePtr = genChgA(ix)
c                   callp     CallMe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.