problems porting "procedure variables" from Delphi lazarus / 1-Linux ---------------------------------------------------------------------- JonBondy · 2010-06-14 17:24 See attached code.  This code works in Delphi 2007, but not with Lazarus.  The compiler error occurs at line 49. Any idea how to work around this? Thanks! Jon ---------------------------------------------------------------------- mas steindorff · 2010-06-14 19:02 try replacing    DoManyTimes(DoTheGetChar); with    DoManyTimes(@DoTheGetChar); ---------------------------------------------------------------------- Leledumbo · 2010-06-14 22:08 Or better: use {$mode delphi} ---------------------------------------------------------------------- bflm · 2010-06-14 23:08 Quote from: JonBondy on June 14, 2010, 07:24:40 pmSee attached code.  This code works in Delphi 2007, but not with Lazarus.  The compiler error occurs at line 49. Any idea how to work around this? Thanks! Jon It's documented: http://wiki.freepascal.org/Code_Conversion_Guide#Syntax_differences ---------------------------------------------------------------------- JonBondy · 2010-06-25 14:15 Thanks to all of you for the help!