>> why is complier not able to recognize that factor 2 on 'CALLP
genChgA(ix)' statement is an array of procptr? ......Complier error:
*RNF5410 30     21 006150  The prototype for the call is not defined.

I suspect that you are really confused here as to how CALLP and proc
pointers work.  I am guessing that you intend that the call _target_ be
identified by a procptr. In which case you are just going about it the wrong
way.

No matter what, the answer is that you can't use CALLP without defining a
prototype - and I don't see one in your source.

IF you want to have a dynamic call via procedure pointer then the prototype
should be something like this:

      // Notice no 'quotes round the procedure name in the next line
     D CallProc        Pr                  ExtProc(ProcToCall)
     D   Parms go here if you have any

     D   ProcToCall                     *   procptr
      // Set up procedure pointer for call
       ProcToCall = genChgA(ix);
      // And call it
       CallProc( parms go here);

If I haven't guessed correctly you're going to have to be more explicit.


Jon Paris
Partner400
www.Partner400.com


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.