S
sunda
Unregistered / Unconfirmed
GUEST, unregistred user!
.......
procedure TForm1.BitBtn1Click(Sender:Tobject);
var
i:Integer;
SearchRec:TSearchRec;
begin
Searched:=True;
FindFirst(edit1.text,faAnyFile,SearchRec);
ListBox1.Items.Add(Searched.Name);
Repeat
i:=FindNext(SearchRec);
If i=0 then
listbox1.items.add(searchRec.name);
unit i<>0;
end;
在这段程序中我想问一下关于Searched:=true;
和SearchRec:TSearchRec;
再就是在if ....then中为什么i=0??
不明白请回答!
procedure TForm1.BitBtn1Click(Sender:Tobject);
var
i:Integer;
SearchRec:TSearchRec;
begin
Searched:=True;
FindFirst(edit1.text,faAnyFile,SearchRec);
ListBox1.Items.Add(Searched.Name);
Repeat
i:=FindNext(SearchRec);
If i=0 then
listbox1.items.add(searchRec.name);
unit i<>0;
end;
在这段程序中我想问一下关于Searched:=true;
和SearchRec:TSearchRec;
再就是在if ....then中为什么i=0??
不明白请回答!