Antonio Sanguigni wrote:
For the second one:
main.pas(261,19) Error: Incompatible types: got "<class method type of
procedure(TObject, Boolean,const AnsiString) of object;Register>"
expected "<procedure variable type of procedure(TObject, Boolean,const
AnsiString) of object;Register>"

Remove the 'class' keyword from your function. A class method is a different beast (with different signature) from a regular method.

Micha
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to