HomeDelphiDelphi Error – E2073 Label already defined ‘%s’

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 X2421 Imported identifier ‘%s’ conflicts with ‘%s’ in ‘%s’ Reason for the Error & Solution This occurs...
Delphi Compiler Error X2367 Case of property accessor method %s.%s should be %s.%s Reason for the Error & Solution No...
Delphi Compiler Error X2269 Overriding virtual method ‘%s.%s’ has lower visibility (%s) than base class ‘%s’ (%s) Reason for the...