Guest_imported
New member
- Jan 1, 1970
- 0
can somebody tell me how to get a list of all files in a dir??
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
procedure TForm1.FindAllFiles(Sender: TOBject);
var sr: TSearchRec;
begin
FindFirst(<YOUR PATH HERE>+'\*.*',(faAnyFile),sr);
begin
if ExtractFileExt(sr.FindData.cFileName) <> '' then
Combobox1.Items.Add(sr.FindData.cFileName);
end;
while FindNext(sr) = 0 do
begin
if ExtractFileExt(sr.FindData.cFileName) <> '' then
Combobox1.Items.Add(sr.FindData.cFileName);
end;
FindClose(sr);
end;