Write a program that displays the name of your favorite hero
October 12, 2021 | education
| The program is written in the Delphi language. The program displays an inscription on the screen, your favorite movie hero, after pressing the enter button. Fitted into a text box.
Button1: TButton;
Edit1: TEdit;
Label1: TLabel;
procedure Button1Click (Sender: TObject);
private
public
end;
var
Form1: TForm1;
r, a: string;
implementation
{$ R * .dfm}
procedure TForm1.Button1Click (Sender: TObject);
begin
a: = Edit1.Text;
r: = ‘my favorite hero’;
r: = r + a;
Label1.caption: = r;
end;
end.
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.