Changeset 515 for Common/UCommon.pas
- Timestamp:
- Jun 5, 2018, 11:02:54 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/UCommon.pas
r510 r515 73 73 function LoadFileToStr(const FileName: TFileName): AnsiString; 74 74 procedure SearchFiles(AList: TStrings; Dir: string; 75 FilterMethod: TFilterMethodMethod );75 FilterMethod: TFilterMethodMethod = nil); 76 76 function GetStringPart(var Text: string; Separator: string): string; 77 77 … … 524 524 525 525 procedure SearchFiles(AList: TStrings; Dir: string; 526 FilterMethod: TFilterMethodMethod );526 FilterMethod: TFilterMethodMethod = nil); 527 527 var 528 528 SR: TSearchRec; … … 532 532 try 533 533 repeat 534 if (SR.Name = '.') or (SR.Name = '..') or not FilterMethod(SR.Name) or535 not FilterMethod(Copy(Dir, 3, Length(Dir)) + SR.Name) then Continue;534 if (SR.Name = '.') or (SR.Name = '..') or (Assigned(FilterMethod) and (not FilterMethod(SR.Name) or 535 not FilterMethod(Copy(Dir, 3, Length(Dir)) + SR.Name))) then Continue; 536 536 AList.Add(Dir + SR.Name); 537 537 if (SR.Attr and faDirectory) <> 0 then
Note:
See TracChangeset
for help on using the changeset viewer.