On 15 Jul 2012, at 15:09, CA Gorski wrote:

> But then I get the following error trying to use the variable:
> 
> Error: Incompatible types: got "<class method type of 
> function(AnsiString):Boolean of object;Register>" expected "<procedure 
> variable type of function(AnsiString):Boolean of object;Register>"

That seems to be a bug in ObjFPC mode procvar support. It works in Delphi mode. 
Please always include a complete test program in the future, so that people 
wanting to help you don't have to write multiple test programs themselves to 
figure out what the code you were using might look like.


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

Reply via email to