Set ampersand in caption

Posted in Others

To use ampersand in Delphi, you should write double symbol "&" in a string. For example:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Button1.Caption:='Stay&&Run';
end;