Changeset 105 for trunk/NewView/FileDialogForm.pas
- Timestamp:
- Apr 5, 2007, 8:34:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/FileDialogForm.pas
r97 r105 123 123 PmWin, 124 124 SysUtils, 125 ACLStringUtility,126 125 FileUtilsUnit, 127 126 ACLDialogs, … … 131 130 SettingsUnit, 132 131 HelpFile, 132 StringUtilsUnit, 133 133 DebugUnit; 134 134 … … 286 286 filename: string; 287 287 ShowList: boolean; 288 NameAndTitle: string;288 tmpNameAndTitle: string; 289 289 Begin 290 290 CompletionsListBox.Items.Clear; … … 295 295 for i := 0 to FileListBox.Items.Count - 1 do 296 296 begin 297 NameAndTitle := FileListBox.Items[ i ];298 Filename := ExtractNextValue( NameAndTitle, #9);299 300 if StrStarts ( search, filename) then297 tmpNameAndTitle := FileListBox.Items[ i ]; 298 Filename := StrLeftUntil(tmpNameAndTitle, [StrTAB]); 299 300 if StrStartsWithIgnoringCase(filename, search) then 301 301 CompletionsListBox.Items.Add( filename ); 302 302 end; … … 306 306 if CompletionsListBox.Items.Count = 1 then 307 307 begin 308 if not Str ingsSame( CompletionsListBox.Items[ 0 ], search) then308 if not StrEqualIgnoringCase(CompletionsListBox.Items[0], search) then 309 309 ShowList := true; 310 310 end … … 436 436 begin 437 437 NameAndTitle := FileListBox.Items[ FileIndex ]; 438 FileNames.Add( ExtractNextValue( NameAndTitle, #9 ));438 FileNames.Add(StrLeftUntil(NameAndTitle, [StrTAB])); 439 439 end; 440 440 end; … … 471 471 begin 472 472 DoErrorDlg( InvalidFilterErrorTitle, 473 Str DoubleQuote( FileNameText)473 StrInDoubleQuotes(FileNameText) 474 474 + InvalidFilterError 475 + EndLine475 + StrCRLF 476 476 + ' \ / :' ); 477 477 exit; … … 611 611 + Filename ); 612 612 613 FileListBox.Items.Add( Filename 614 + #9 615 + Title ); 613 FileListBox.Items.Add(Filename + StrTAB + Title ); 616 614 end; 617 615 FileListBox.Items.EndUpdate;
Note:
See TracChangeset
for help on using the changeset viewer.