TFindFile - Request

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

TFindFile - Request

Postby markmoss » May 18th, 2010, 9:25 pm

Hello

I am in need of the following feature to be added to TFindFile ( It may already be their, but I have not found it. )

Let me explain the layout that I am dealing with.

Program - Directory

Data - Directory ---- Their is only one Data Directory

1000 - Series - Directory ---- Their could be hundreds of Series Directories under the Data Directory

1 - Card - Directory
6 - Card - Directory ---- Their could be hundreds of Card Directories under a Series Directory
25 - Card - Directory
36 - Card - Directory

1001 - Series - Directory ---- Their could be hundreds of Series Directories under the Data Directory

1 - Card - Directory
9 - Card - Directory ---- Their could be hundreds of Card Directories under a Series Directory
14 - Card - Directory
36 - Card - Directory
74 - Card - Directory
136 - Card - Directory

etc.


What needs to be added is an option to be added to return the path along with the filename like the following

If I select a Location of "C:\ProgramDir\Data" and Directories Only in the FileName "*." I would get back the following

1000\1
1000\6
1000\25
1000\36
1001\1
1001\9
1001\14
1001\36
1001\74
1000\136

If I select a Location of "C:\ProgramDir" and Directories Only in the FileName "*." and I only had the one SubDir "Data" I would get back the following

Data\1000\1
Data\1000\6
Data\1000\25
Data\1000\36
Data\1001\1
Data\1001\9
Data\1001\14
Data\1001\36
Data\1001\74
Data\1000\136

I love your component and I think that this would only make it better.

Mark Moss
USA
markmoss
Member
Member
 
Posts: 4
Joined: September 11th, 2006, 2:18 am

Re: TFindFile - Request

Postby Kambiz » May 20th, 2010, 11:31 am

To search only for directories, use Criteria.Attributes property and set its Directory sub-property to fsSet and all the others to fsUnset.

To confine number of subdirectories, use Criteria.Files.MinLevel and Criteria.Files.MaxLevel properties.

I Hope this information helps you.
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