E2073 Label already defined '%s' (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

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.