Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit Unit1;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls;
- type
- TForm1 = class(TForm)
- Memo1: TMemo;
- Button1: TButton;
- Edit1: TEdit;
- Button2: TButton;
- Edit2: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- procedure Button2Click(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.dfm}
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- memo1.Text:=Edit1.text;
- memo1.Lines.SaveToFile(Edit2.text);
- end;
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- Memo1.Lines.LoadFromFile(Edit2.text);
- Edit1.Text:='';
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement