Delphi Error – E2073 Label already defined ‘%s’

Delphi Compiler Error

E2073 Label already defined ‘%s’

Reason for the Error & Solution

This error message is given when a label is set on more than one statement.

program Produce;
label 1;
begin
1:
  goto 1;
1        (*<-- Error message here*)
end.

The example just tries to set label 1 twice.

program Solve;
label 1;
begin
1:
  goto 1;
end.

Make sure every label is set exactly once.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...