Einzelnen Beitrag anzeigen

Gruber_Hans_12345

Registriert seit: 14. Aug 2004
1.439 Beiträge
 
Delphi 2007 Professional
 
#4

Re: FindFirst - faAnyFile, SearchRec

  Alt 30. Nov 2006, 17:17
Delphi-Quellcode:
if
FolderDialog1.Execute=True then begin
s:=FolderDialog1.Directory;

i := FindFirst(s+'\*.*', faAnyFile, SearchRec);
while i = 0 do
  begin
    if not ( (SearchRec.Name = '.') or (SearchRec.Name = '..') ) then
  ListBox1.Items.Add(s+'\'+SearchRec.Name);
Gruss Hans

2B or not 2B, that is FF
  Mit Zitat antworten Zitat