艾 艾伦希亚 Unregistered / Unconfirmed GUEST, unregistred user! 2008-08-15 #2 var SearchRec: TSearchRec; begin FindFirst('*.*', faAnyFile, SearchRec); repeat ShowMessage(SearchRec.Name);//SearchRec.Name即是文件名 until (FindNext(SearchRec)<>0); FindClose(SearchRec); end;
var SearchRec: TSearchRec; begin FindFirst('*.*', faAnyFile, SearchRec); repeat ShowMessage(SearchRec.Name);//SearchRec.Name即是文件名 until (FindNext(SearchRec)<>0); FindClose(SearchRec); end;