Find File Exclude Filter

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

Find File Exclude Filter

Postby w2m » December 9th, 2008, 8:22 pm

Does the FindFile exclude filter work or is it broken... or am I doing this wrong?
I cannot get it to work regardless of the type of syntax I use for the filter:

Find File Exclude Filter=
*.cfg
*.dof
*.dsk
*.dcu
*.exe
*.~*

Code: Select all
procedure TMainForm.FindButtonClick(Sender: TObject);
var
i: integer;
AFilter: string;
begin
// Sets FileFile properties
  FindFile.Threaded := Threaded.Checked;
  // - Name & Location & Exclude filters
  with FindFile.Criteria.Files do
  begin
    FileName := Self.FileName.Text;
    Location := Self.Location.Text;
    Subfolders := Self.Subfolders.Checked;
    for i := 0 to Filters1.Items.Count - 1 do begin
      AFilter := Filters1.Items[ i ];
      Filters.Add( AFilter );
    end;
  end;
w2m
w2m
Senior Member
Senior Member
 
Posts: 76
Joined: March 8th, 2003, 7:11 pm
Location: New York, USA

Re: Find File Exclude Filter

Postby Kambiz » December 10th, 2008, 1:40 am

Oops! That's a bug.
On Line #1080, remove "+ 1".
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Find File Exclude Filter

Postby w2m » December 10th, 2008, 1:29 pm

That did not solve the problem.

I used:
Find File Exclude Filter=
*.cfg
*.dof
*.dsk
*.dcu
*.exe
*.~*

and

Find File Exclude Filter=
<*.cfg
<*.dof
<*.dsk
<*.dcu
<*.exe
<*.~*

but all these files still appear in the results.

Bill
w2m
w2m
Senior Member
Senior Member
 
Posts: 76
Joined: March 8th, 2003, 7:11 pm
Location: New York, USA

Re: Find File Exclude Filter

Postby w2m » December 10th, 2008, 3:00 pm

whoops... I had commented out the code that added the filter in my demo. It works now.
w2m
w2m
Senior Member
Senior Member
 
Posts: 76
Joined: March 8th, 2003, 7:11 pm
Location: New York, USA


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 3 guests

cron