楚
楚辞
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject); var s:string;begin OpenDialog1.Filter := '文本文件 '; OpenDialog1.FileName := '*.txt ';if Opendialog1.Execute then begin edit1.Text :=opendialog1.FileName; s:=Opendialog1.FileName; // memo1.Lines.Add(s); listbox1.Items.Add(ExtractFileName(s)); // memo1.Lines.Add(extractfilepath(s)); Memo1.lines.loadfromfile(OpenDialog1 .filename);end; end;procedure TForm1.FormCreate(Sender: TObject);begin edit1.SetFocus;//这好象不能设.....end;