I have stumbled across a problem with the FindFirst procedure ..
I'm using:
FindFirst('C:\*.*', Hidden, SearchInfo);
Where SearchInfo is a SearchRec variable and I am using the DOS unit. It seems FindFirst (when used in conjuction with the FindNext procedure), finds all files matching the wildcard specification, but not the attribute specification.
I got around the problem by using an:
If SearchInfo.Attr = Hidden Then ...
but it's ugly and slower. Is it a bug that I've stumbled on? I can reproduce this bug using Turbo Pascal 5.5 and 6.0 even using example source code from the help file!