And what's in FileListBox1.FileType? Perhaps in the specified directory there are simply no files with the appropriate attribute
Aserge : these are the files of filestreams; with no specific extension added to the filename
i did an extra test to add .txt but that made no difference
FileListBox1.directory:= 'c:\users\public\STEPBYSTEPFILEFOLDERS\'; //dont forget the slash at end
FileListBox1.mask:= '*.*'; //file tipe all but *.txt* ,*.csv* can be used
almir, indeed i did forget the'\'at the end ; but adding that made no difference
also adding FileListBox1.mask:= '*.*'; made no difference
i looked around if i had to specifically mark filestream-files but i couldn,t find that
i have added :
if FileListBox1.Items.Count = 0 then showmessage(' FileListBox1 not filled')
and gave the indication that the items.count=0 ; there are more than 100
frederic