G
guogj0809
Unregistered / Unconfirmed
GUEST, unregistred user!
Procedure LoadFromFile(const FileName: String);
begin
OpenDialog.Execute;
Memo1.lines.LoadFromFile(OpenDialog.FileName);
end;
应该在哪里写?
我在这里写的,不对。刚学,帮忙。
implementation
{$R *.dfm}
procedure loadfromfile(const filename:string);
begin
opendialog1.excute;
edit.text.loadfromfile(opendialog.filename);
end;
begin
OpenDialog.Execute;
Memo1.lines.LoadFromFile(OpenDialog.FileName);
end;
应该在哪里写?
我在这里写的,不对。刚学,帮忙。
implementation
{$R *.dfm}
procedure loadfromfile(const filename:string);
begin
opendialog1.excute;
edit.text.loadfromfile(opendialog.filename);
end;