吴
吴其华
Unregistered / Unconfirmed
GUEST, unregistred user!
为何报错
procedure TForm1.Button1Click(Sender: TObject);
var
str:Tstrings;
begin
if OpenDialog1.Execute then
begin
str:=Tstrings.Create;
str.LoadFromFile(Opendialog1.FileName);///这一句怎么会报错
//showmessage(str.Strings[5])
str.Free;
end;
end;
end.
procedure TForm1.Button1Click(Sender: TObject);
var
str:Tstrings;
begin
if OpenDialog1.Execute then
begin
str:=Tstrings.Create;
str.LoadFromFile(Opendialog1.FileName);///这一句怎么会报错
//showmessage(str.Strings[5])
str.Free;
end;
end;
end.