DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TFindFile, wrong Result when searching for *1*

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
Farderlorn
Member


Joined: 16 Jun 2006
Posts: 2

PostPosted: 19/09/06 13:52    Post subject: TFindFile, wrong Result when searching for *1* Reply with quote

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 Wink )

Any idea?
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 19/09/06 15:56    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group