Soluling home   Document home

Duplicate resource string

Duplicate resource string

You have two or more resource string ids with the same name in the same unit. All ids should be unique within the unit. For example:

unit Sample;
procedure Open;
resourcestring
  SCaption = 'Open';
begin
  ...
end;
procedure Close;
resourcestring
  SCaption = 'Close';
begin
  ...
end;

There are two SCaption resource strings in the Sample unit. Those strings can't be separated in DRC-file. The right solution is to have a unique name for each resource string.

unit Sample;
procedure Open;
resourcestring
  SOpen = 'Open';
begin
  ...
end;
procedure Close;
resourcestring
  SClose = 'Close';
begin
  ...
end;