User's Functions and Parameters
Hi. I've added some functions to FastReport by means of the definition of the class TfrMyFunctions = class (TfrFunctionLibrary). I've specified the methods "create" and "dofunction". It runs well.
In the master detail's event "OnBeforePrint" I've put the next code:
Why doesn't it pass the value? How Can I do it?
Thanks.
In the master detail's event "OnBeforePrint" I've put the next code:
begin
  Aux1:=[ModuloInformes.ARTICULOS."NCOD_EJERCICIO"];
  Aux2:=[PAGE#];
  if GenIDX='S' then GRABAR([Aux1],[Aux2]);
end;
where Aux1, Aux2 and GenIDX are variables defined in the FR Dictionary. The problem is DoFunction receives parameters p1,p2 but its values are p1='[Aux1]' and p2='[Aux2]' instead of p1='<value of field>' and p2=<page number>.Why doesn't it pass the value? How Can I do it?
Thanks.
Comments
you probably missed a call to frparsercalc() when you created your function lib.