[lazarus] FPC Request

michael at tfdec1.fys.kuleuven.ac.be michael at tfdec1.fys.kuleuven.ac.be
Fri Oct 22 16:11:42 EDT 1999




On Fri, 22 Oct 1999, Shane Miller wrote:

> Here's another one.  When assigning a TNotifyEvent to a procedure like
> 
> OnCLick := Button1Click; 
> 
> FPC returns an error 
> Wrong Amout of parameters specified.
> 
> The way you fix it is to do a 
> 
> OnCLick := @Button1Click; 

This is only true if you use -S2. If you use -Sd, it should
accept the 
 OnCLick := Button1Click; 
form also. Or, if you use the directives, you should do a 

{$mode delphi}  

instead of

{$mode objfpc}

Michael.






More information about the Lazarus mailing list