Ignore:
Timestamp:
Apr 5, 2007, 8:34:33 PM (18 years ago)
Author:
RBRi
Message:

%more stringutils refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/NavigatePointUnit.pas

    r33 r105  
    4848  SysUtils,
    4949  ACLUtility,
    50   ACLStringUtility;
     50  StringUtilsUnit,
     51  DebugUnit;
    5152
    5253procedure SaveWindowList( Var F: TextFile;
     
    167168constructor TSavedHelpWindow.Load( Var F: TextFile );
    168169var
    169   s: string;
     170  tmpString : string;
    170171  TopicIndex: integer;
     172  tmpParts : TStringList;
    171173begin
    172174  inherited Create;
     
    174176  Rect:= THelpWindowRect.Create;
    175177
    176   ReadLn( F, S );
     178  ReadLn( F, tmpString);
     179  tmpParts := TStringList.Create;
     180  StrExtractStrings(tmpParts, tmpString, [','], #0);
    177181
    178   TopicIndex   := StrToInt( ExtractNextValue( S, ',' ) );
     182  TopicIndex   := StrToInt(tmpParts[0]);
    179183  Topic := HelpFile.Topics[ TopicIndex ];
    180   Group        := StrToInt( ExtractNextValue( S, ',' ) );
    181   Rect.Left    := StrToInt( ExtractNextValue( S, ',' ) );
    182   Rect.Bottom  := StrToInt( ExtractNextValue( S, ',' ) );
    183   Rect.Width   := StrToInt( ExtractNextValue( S, ',' ) );
    184   Rect.Height  := StrToInt( ExtractNextValue( S, ',' ) );
    185   TopCharIndex := StrToInt( ExtractNextValue( S, ',' ) );
     184  Group        := StrToInt(tmpParts[1]);
     185  Rect.Left    := StrToInt(tmpParts[2]);
     186  Rect.Bottom  := StrToInt(tmpParts[3]);
     187  Rect.Width   := StrToInt(tmpParts[4]);
     188  Rect.Height  := StrToInt(tmpParts[5]);
     189  TopCharIndex := StrToInt(tmpParts[6]);
     190
     191  tmpParts.Destroy;
    186192
    187193  LoadWindowList( F, ChildWindows, HelpFile );
Note: See TracChangeset for help on using the changeset viewer.