ADP 0 Posted April 17 What's wrong with the following code? It does'nt work. procedure TMainForm.Timer1Timer(Sender: TObject); if Label2.Caption := 'True' Then Label2.Caption := 'GREAT'; end; Share this post Link to post
softtouch 9 Posted April 17 (edited) ... the :='True' should be ='True'... Edited April 17 by softtouch Share this post Link to post
Uwe Raabe 2064 Posted April 17 Also there is a begin missing before the if. I suggest reading some basics about Pascal/Delphi syntax. Share this post Link to post
ADP 0 Posted April 17 Thank you very much. It' a very simple mistake that I made, but I just couldn't see it. Share this post Link to post