I had tought that FindFirst found files in alphabetical order but recently i am finding that while this is true for the most part a few files are not in alphabetical order.
if FindFirst( AProgramPath, faAnyFile, ASearchRec ) = 0 then
repeat
AFilename := ASearchRec.name;
until FindNext( ASearchRec ) <> 0;
FindClose( ASearchRec );
in a specific folder here with about 300 text files all but about 8-10 of the files are returned in the correct alphabetical order.
if findfirst does not return files in alphabetical order is there a method that can be used to sort the folders contents in alphabetical order so that findfirst returns files in alphabetical order?
Regards,
Bill