[fpc-pascal] Assigning events in objects

Marco van de Voort marcov at stack.nl
Wed Feb 3 22:14:49 CET 2010

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.

More information about the fpc-pascal mailing list