[Lazarus] A simple event problem in console program

DougC doug at moosemail.net
Tue Dec 15 23:09:44 CET 2015


A TNotifyEvent must be a procedure that is a method of a class. You have created and tried to use a plain procedure instead. 





---- On Tue, 15 Dec 2015 17:02:48 -0500 Aradeonas <aradeonas at operamail.com>wrote ---- 




... and give this error:


project1.lpr(30,13) Error: Incompatible types: got "<address of procedure(TObject);Register>" expected "<procedure variable type of procedure(TObject) of object;Register>"







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151215/adde04d6/attachment-0003.html>


More information about the Lazarus mailing list