user function library

Im trying to understand how to add my own functions to the function library.

i understand most of it EXCEPT the following section taken from the online help...

<span style='font-family:Courier'>procedure TMyFunctionLibrary.DoFunction(FNo: Integer; p1, p2, p3: Variant;
var val: Variant);
begin
val := 0;
case FNo of
0: val := My_DateConvertion_Routine(frParser.Calc(p1));
1: val := My_SumConvertion_Routine(frParser.Calc(p1));
end;
end;</span>

It makes no mention in which class the My_DAteConversion_Routine is implemented in, nor why its using the FrParser.Calc ?????

any help would really be appreciated...

ian

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:16PM
    see my reply to the same question posted in the fastreport yahoo group.
    regards ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.