John vd Waeter wrote:
Now at runtime I like to connect the updown.Onclick to this procedure:
With MyUpdown do
begin
Parent:= ...
Top := ...
Left := ...
OnClick := UpDownClick;
end;
But the last assignment gives me an error: Wrong number of parameters
specified
This works ok in Delphi.
How to connect at runtime? I don't know parameters at designtime...
I am using 0.9.24 and target is WinCE
FreePascal supports different modes. In Delphi mode your code will work.
To turn on delphi mode add directive {$mode delphi} at the begining of
your unit.
In default FreePascal mode you should write OnClick := @UpDownClick;
Best regards,
Paul Ishenin.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives