【发布时间】:2010-12-07 08:43:13
【问题描述】:
我已经声明了以下函数:
function next(current, next: string): Integer;
begin
form1.Label1.Caption := next;
form1.Label2.Caption := current;
form1.label3.Caption := clipboard.AsText+inttostr(c);
Result:=1;
end;
我尝试用这段代码执行它:
if label1.Caption = '' then res := next('current', 'next');
我收到以下错误:
[错误] Unit1.pas(47): E2034 太多 实际参数
我认为所有参数都很好,为什么会出现这个错误?
【问题讨论】:
-
这只是一个猜测,但我相信这是参数名称和函数名称相同的事实。尝试在参数名称前添加例如“A”。
标签: delphi pascal delphi-2005