楚
楚辞
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.Button2Click(Sender: TObject); vars,s1:integer; begins:=pos('样品编号:',memo1.text);s1:=pos('采样地点:',memo1.text);edit2.text:=copy(memo1.text,s,s1-s);edit3.Text:=copy(memo1.Text,s,s1-s );//采样地点取不过去....end;end.