Delphi7 怎么弹出保存对话框 我想将所写的内容保存,不知道应如何保存? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 yes,如果savedialog不能满足你,自己做一个就是了 你是问具体怎样操作吗,查帮助文档吧,下面是一个保存memo中内容的一个示例[code=Delphi(Pascal)]unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; SaveDialog1: TSaveDialog; Memo1: TMemo; procedure Button1Click(Sender: TObject); end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);begin if SaveDialog1.Execute then Memo1.Lines.SaveToFile(SaveDialog1.FileName);end;end.[code] if SaveDialog1.Execute then Memo1.Lines.SaveToFile(SaveDialog1.FileName); procedure TForm1.Button1Click(Sender: TObject);begin if SaveDialog1.Execute then Memo1.Lines.SaveToFile(SaveDialog1.FileName);end; 关于联合查询的,请高手帮忙. 谁能告诉我TActionManager怎么用 如何更改指定文件的文件名 如何将pagecontrol中的tabsheet的背景设为指定的图案 关于DateTimePicker1的问题? 如何获得机器得MAC地址?(在线等待) 用友问题 请教大家一个简单的问题,StringGrid的内容如何清空? 用DBGrid浏览数据库的问题 如何在程序中向另外一个程序发送<回车键>? 有没有delphi控件的属性参考手册 真是奇怪了,为什么啊。。关于RZcombobox
[code=Delphi(Pascal)]
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
SaveDialog1: TSaveDialog;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
if SaveDialog1.Execute then
Memo1.Lines.SaveToFile(SaveDialog1.FileName);
end;end.[code]
Memo1.Lines.SaveToFile(SaveDialog1.FileName);
begin
if SaveDialog1.Execute then
Memo1.Lines.SaveToFile(SaveDialog1.FileName);
end;