Контрольная работа: Разработка программного комплекса
begin
Edit1.Text := SaveDialog1.FileName+'.txt';
end
end;
procedure TForm2.Button3Click(Sender: TObject);
begin
if OpenDialog1.Execute then
begin
Edit3.Text := OpenDialog1.FileName;
end;
end;
procedure TForm2.Button1Click(Sender: TObject);
begin
ModalResult := mrOk;
//Close;
end;
end.
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, Unit1;
type
TForm3 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;