非常感谢,可是我现在还有个问题如下:
function TForm1.CUpperCase(Value: integer): string;
begin
...
end;
procedure TForm1.frReport1UserFunction(const Name: String;
p1, p2,
p3: Variant;
var Val: Variant);
begin
if Ansicomparetext('CUpperCase',name) = 0 then
Val:=CUpperCase(p1);
end;