TTimer Issue lazarus / 31-LCL ---------------------------------------------------------------------- Curt Carpenter · 2011-09-01 03:02 I am unable to assign a procedure to the OnTimer event of my TTimer component.  Any idea what is going on? ---------------------------------------------------------------------- Peter_Vadasz · 2011-09-01 05:34 How try to do this? TTimer1.OnTimer:=@eventprocedure; ---------------------------------------------------------------------- User137 · 2011-09-01 06:41 the procedure must of " of object" type. So for example defined in TForm's public/private etc sections is compatible. Unit procedures are not. ---------------------------------------------------------------------- Shebuka · 2011-09-01 08:19 Quote from: Curt Carpenter on September 01, 2011, 05:02:42 amI am unable to assign a procedure to the OnTimer event of my TTimer component.  Any idea what is going on? post your code here so we can give more help. ---------------------------------------------------------------------- Curt Carpenter · 2011-09-01 15:30 Thanks to everyone for the help.   The problem is solved thanks to Peter_Vadasz.  My program is converted from Delphi, and I wasn't prefixing my assignments to the OnTimer event with an "@" as required. (Along the way, I also deleted the TTimer from my form and reinstalled it -- but I don't know if this had any effect or not on my being able to set an OnTimer event from the object inspector since I corrected the "@" error at the same time). Thanks again.