I have a couple of strange files on our NT server that seem to be invisible to a FileListBox, but can be found when I check for their existence using a call to FileExists(...)!
Any reason why FileListBox would not see files that FileExist would see?
My FileListBox Code is similar to this:
FileListBox.Directory := "y:\projects\";
FileListBox.mask := "pd3001.*"
If FileListBox.Items.Count > 1 then ...';
My FileExists Code is similar to this;
If FileExists("y:\projects\pd3001.*") then ...;
When I use FileExists(), I am trying to determine if ANY file exists for a given filename. When I use FileListBox(), I am trying to determine how MANY file exists for a given filename (ie, PD3001.TXT and PD3001.DOC).
Please help, this is causing problems with new software I've just rolled out at work!