L
lkdbdlkq
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.FindAll(const Path: String);<br>var<br> sr:TSearchRec;<br> fr:Integer;<br>begin<br>fr:=FindFirst(Path,faAnyFile,sr);<br>while fr=0 do<br> begin<br> if (sr.Attr=faDirectory)and(sr.Name<>'.')and(sr.Name<>'..') then<br> FindAll(sr.Name) <br> else<br> begin<br> showmessage(sr.name);<br> end;<br> FindNext(sr);<br> end;<br>FindClose(sr);<br>end;<br><br>我是从网上找到的这个函数,可是调用时总是不停时showmessage,一直停不下来,这是为什么呢?万分感谢!