HelpMEDude
Programmer
Hi, I would need some help with my program I'm doing.
The problem is that when I try to compile/run my project it founds a problem that says:
[Error] Unit1.pas(44): Undeclared identifier: 'L31'
L31 is a label on form1. It is alredy declared as
Var
L31 : TLabel.
I using it in a procedure thats made by myself (its not done by dubbelclicking on an event on the object inspector)
The Procedure look like this:
Procedure Checkcrash;
Begin
IF L31.caption ='>Stone<' and bilplacering1 then CarCrashed;
IF L32.caption ='>Stone<' and bilplacering2 then CarCrashed;
IF L33.caption ='>Stone<' and bilplacering3 then CarCrashed;
IF CarCrashed Then Begin
Crashed.caption:='Crashed';
Timer1.enabled:=false;
end;
end; -- Carcrashed and bilplacering1/2/3 are booleans
Please help me!!!
The problem is that when I try to compile/run my project it founds a problem that says:
[Error] Unit1.pas(44): Undeclared identifier: 'L31'
L31 is a label on form1. It is alredy declared as
Var
L31 : TLabel.
I using it in a procedure thats made by myself (its not done by dubbelclicking on an event on the object inspector)
The Procedure look like this:
Procedure Checkcrash;
Begin
IF L31.caption ='>Stone<' and bilplacering1 then CarCrashed;
IF L32.caption ='>Stone<' and bilplacering2 then CarCrashed;
IF L33.caption ='>Stone<' and bilplacering3 then CarCrashed;
IF CarCrashed Then Begin
Crashed.caption:='Crashed';
Timer1.enabled:=false;
end;
end; -- Carcrashed and bilplacering1/2/3 are booleans
Please help me!!!