fpc-pascal  

Re: [fpc-pascal] Assigning events in objects

Marco van de Voort
Wed, 03 Feb 2010 13:15:11 -0800

In our previous episode, Zitt Zitterkopf said:
> I'm writing a TurboVision App to cross compile to Linux - but debugging on my 
> main Win32 box. 
>  
> In this app; I'm attempting to use the TFPTimer component to trigger an
> event every 1000ms. I can't get the bugger to compile; despite google
> searches and a lot of experience in Delphi.

My guess is that you try to assign a methodvar of the TP object type to a
variable from the Delphi class type.

Since a methodvar contains a reference to the object, there is a
typemismatch for that.
  
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal