Months ago, Greg help me with a workaround to bypass the multi-pass issue of the CSPro logic compiler by using function pointers.
However, today, the first time that i'm trying them, there's an issue.
a) I have three pff objects functions to add, modify and verify cases using a menu.
Function choixQuestionnaire(function EntryPffIpb_add(),function EntryPffIpb_modification(),function EntryPffIpb_verify())
if choixPrincipal()=1 then
numeric opQuestionnaire=choixMenuQuest.show("SVP, veuillez choisir");
if opQuestionnaire=1 then
codeAcceuil();
EntryPffIpb_add();
endif;
if opQuestionnaire=2 then
codeAcceuil();
EntryPffIpb_modification();
endif;
if opQuestionnaire=2 then
codeAcceuil();
EntryPffIpb_verify();
endif;
endif;
end;
It display no errors.if choixPrincipal()=1 then
numeric opQuestionnaire=choixMenuQuest.show("SVP, veuillez choisir");
if opQuestionnaire=1 then
codeAcceuil();
EntryPffIpb_add();
endif;
if opQuestionnaire=2 then
codeAcceuil();
EntryPffIpb_modification();
endif;
if opQuestionnaire=2 then
codeAcceuil();
EntryPffIpb_verify();
endif;
endif;
end;
b) However, when i call this in a proc:
if $<>"" then
choixPrincipal();
choixQuestionnaire(EntryPffIpb_add(),EntryPffIpb_modification(), EntryPffIpb_verify());
endif
It display errors: ERROR(57): choixPrincipal();
choixQuestionnaire(EntryPffIpb_add(),EntryPffIpb_modification(), EntryPffIpb_verify());
endif
Please, how to solve this?Functions called recursively or via function references can only contain local variables of type: numeric, string, and list
Thanks in advance!