[Lazarus] Can't assign event procedure....

Bo Berglund bo.berglund at gmail.com
Sat Oct 13 21:00:51 CEST 2018


On Sat, 13 Oct 2018 20:43:43 +0200, Bo Berglund via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>type
>  TRxEvent = procedure (const Buffer: TBytes) of object;

Of course posting here is the best way to actually discover the
solution just a few minutes afterwards...

The const specifier was missing in the implementation on the form
where I wanted to use the class object. Adding it in let the compile
succeed!

Sorry for the noise.


-- 
Bo Berglund
Developer in Sweden



More information about the Lazarus mailing list