procedure TForm1.Memo1DblClick(Sender: TObject);
var
fn : string ;
begin
if (SaveDialog1.Execute) then begin
fn := SaveDialog1.FileName ;
try
Memo1.Lines.SaveToFile(fn);
except
;
end;
end;
end;
procedure TForm1.Memo1DblClick(Sender: TObject);
var
fn : string ;
begin
if (SaveDialog1.Execute) then begin
fn := SaveDialog1.FileName ;
try
Memo1.Lines.SaveToFile(fn,TEncoding.Unicode);
except
;
end;
end;
end;