Commit 308c2a4 1 parent 2185947 commit 308c2a4 Copy full SHA for 308c2a4
File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,14 @@ procedure TFrmMain.BtnPathClick(Sender: TObject);
49
49
end ;
50
50
51
51
procedure TFrmMain.BtnSeekClick (Sender: TObject);
52
+ var
53
+ S: TStringList;
52
54
begin
53
55
DS.Dir := EdDir.Text;
54
56
DS.SubDir := CkSubDir.Checked;
55
57
DS.UseMask := CkUseMasks.Checked;
56
58
DS.Inclusions.Assign(EdInc.Lines);
57
59
DS.Exclusions.Assign(EdExc.Lines);
58
- DS.ResultKind := TDSResultKind(RgResultKind.ItemIndex);
59
60
DS.IncludeHiddenFiles := CkHiddenFiles.Checked;
60
61
DS.IncludeSystemFiles := CkSystemFiles.Checked;
61
62
DS.Sorted := CkSorted.Checked;
@@ -65,8 +66,15 @@ procedure TFrmMain.BtnSeekClick(Sender: TObject);
65
66
66
67
DS.Seek;
67
68
68
- LbCount.Caption := IntToStr(DS.List.Count);
69
- EdResult.Lines.Assign(DS.List);
69
+ S := TStringList.Create;
70
+ try
71
+ DS.GetResultStrings(S, TDSResultKind(RgResultKind.ItemIndex));
72
+
73
+ LbCount.Caption := IntToStr(S.Count);
74
+ EdResult.Lines.Assign(S);
75
+ finally
76
+ S.Free;
77
+ end ;
70
78
end ;
71
79
72
80
end .
You can’t perform that action at this time.
0 commit comments