FindFile wildcard search

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

FindFile wildcard search

Postby AxelLang » July 22nd, 2012, 1:21 am

Hi Kambiz,

I try to search *.doc files in the fileName and the result brings *.doc and *.docx files.
The search only works, if I leave the filename empty and use file filters:
Code: Select all
FindFile.Criteria.Files.Filters.Add('>*.doc')
FindFile.Criteria.Files.Filters.Add('<*.*')

I try to test if this only happens with *.doc files. I create some files with an fantasy extension.
blabla.abc, blaablaa.abcd and so on. A search with *.abc show all files *.abc, *.abcd, *.abcde.

Is this a Bug or a normal behavior?

Regards

Axel
AxelLang
Member
Member
 
Posts: 2
Joined: July 21st, 2012, 11:58 pm

Re: FindFile wildcard search

Postby Kambiz » July 23rd, 2012, 9:05 pm

Hi Axel,

FindFile relies on Windows API. And, this is the way Windows treats wildcards. You may want to try dir command or Windows search to check it out.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron