[fpc-pascal] Variable of class method type of function

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Jul 15 14:13:38 CEST 2012


On 15 Jul 2012, at 14:05, CA Gorski wrote:

> How to declare a variable of class method type of function?
> 
> ...
> var
>    MyVar: function(AParam: string): boolean of class;
> ...
> gives an error using FPC 2.6.1 (Win64).

You have to use "of object", just like for a regular method.


Jonas



More information about the fpc-pascal mailing list