| View previous topic :: View next topic |
| Author |
Message |
Farderlorn Member
Joined: 16 Jun 2006 Posts: 2
|
Posted: 19/09/06 13:52 Post subject: TFindFile, wrong Result when searching for *1* |
|
|
I use Delphi 7 Pro.
I used the example for TFindFile, to find all files with "1" in the name.
Criteria.Files.FileName := '*1*';
or '*1.*', '*1', ...
The Result contains also Files without a "1" in the name.
I found this Problem only with the 1.
*3* for example works fine (if you are looking for Files with a 3 in the name )
Any idea?
|
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1044 Location: Tehran, Iran
|
Posted: 19/09/06 15:56 Post subject: |
|
|
The wildcards in FindFile are similar to DOS wildcards. This means the characters after the first asterisk (*) are ignored.
I think the same happens for *3* too.
_________________ Kambiz |
|
| Back to top |
|
 |
|