Lazarus doesn't compile the simplest program

General
Slava
2012-05-22
2013-05-14
  • Either write

    Application.OnIdle := @Idle
    

    or add

    {$MODE Delphi}
    

    to the beginning of your file and write

    Application.OnIdle := Idle
    

    This is also discussed in the Lazarus specific tutorial.

     
  • Slava
    Slava
    2012-05-22

    Thanks you very much! Variant with @Idle didn't worked ( It wrote 'Variable identifier expected'). But another variant worked!