English 中文(简体)
C++Builder, withuser function forspeReports Pro VCL states “Too many actual Parafalls”
原标题:C++Builder with user function for FastReports Pro VCL says "Too Many Actual Parameters"

我正试图通过使用用户功能来制定“快速报告”。

在我的主要构造中,我确定:

frxReport1->AddFunction(_D("void ChangeReportField(String fieldstr, String otherfieldstr)"));

在“快报”编码中,使用<代码>C++ 我有:

void MasterData1OnBeforePrint(TfrxComponent Sender)
{
  ChangeReportField(<frxDBDataset1."Field1">, <frxDBDataset1."Field2">);                                                                                                   
}

我还有<代码>关于用户功能的TfrxReport 部件组合活动:

Variant __fastcall TMainForm::frxReport1UserFunction(const UnicodeString MethodName,
                    Variant &Params)
{ }

当你试图管理报告时,你会得到信息。

实际参数太多

参看<代码>左侧左侧。 更改报告领域(,MasterData1OnBeforePrint()

我知道,目前这项职能没有做任何事情,因为它没有回报价值,因此,一旦我实际工作(召唤用户功能),我就不得不这样做。

我做了什么错误?

TIA!

问题回答

添加作为帕斯卡功能的器具:

frxReport1->AddFunction(_D("procedure ChangeReportField(fieldstr, otherfieldstr:String)"));




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签