Gabor Boros wrote:
Hi!
A short example:
type
TOnProgressEvent=procedure (x:integer);
TObj=class(TObject)
private
FOnProgress:TOnProgressEvent;
public
property OnProgress:TOnProgressEvent read FOnProgress write
FOnProgress;
end;
procedure proc1(x:integer);
begin
end;
var
Obj:TObj;
begin
Obj:=TObj.Create;
Obj.OnProgress:=proc1;
end.
My problem is: I get an "Error: Wrong number of parameters specified"
error message on "Obj.OnProgress:=proc1;" line.
My question is why? I tried this with Delphi and working.
http://wiki.lazarus.freepascal.org/index.php/FPC_message:_Wrong_number_of_parameters_specified
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives