Jump to content
Sign in to follow this  
ADP

If command

Recommended Posts

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
Posted (edited)

... the :='True' should be ='True'...

Edited by softtouch

Share this post


Link to post

Also there is a begin missing before the if.

I suggest reading some basics about Pascal/Delphi syntax.

Share this post


Link to post

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×