Ignore:
Timestamp:
Jan 25, 2007, 9:08:08 PM (19 years ago)
Author:
RBRi
Message:

more fixes for the link handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/StringUtilsUnit.pas

    r43 r65  
    6262  Function StrEndsWithIgnoringCase(const aString: String; const anEndString: String): Boolean;
    6363
     64  Function BoolToStr(const aBoolean : boolean ): string;
     65
    6466
    6567Implementation
    6668
     69  uses
     70    DebugUnit;
     71
    6772  constructor TSerializableStringList.Create;
    6873  begin
     74    LogEvent(LogObjConstDest, 'TSerializableStringList createdestroy');
     75
    6976    inherited Create;
    7077    stringList := TStringList.Create;
     
    7481  destructor TSerializableStringList.Destroy;
    7582  begin
    76     stringList.Destroy;
     83    LogEvent(LogObjConstDest, 'TSerializableStringList destroy');
     84    if Nil <> stringList then stringList.Destroy;
     85
    7786    inherited Destroy;
    7887  end;
     
    112121    if (length(aSerializedString) < 1) then exit;
    113122
    114     stringList.destroy;
     123    LogEvent(LogObjConstDest, 'readValuesFromSerializedString');
     124    stringList.Destroy;
     125    LogEvent(LogObjConstDest, 'readValuesFromSerializedString destroy done');
    115126    stringList := TStringList.Create;
    116127    StrExtractStrings(stringList, aSerializedString, ['&'], '\');
     
    277288  end;
    278289
     290  Function BoolToStr(const aBoolean : boolean ): string;
     291  begin
     292    if aBoolean then
     293      Result := 'True'
     294    else
     295      Result := 'False';
     296  end;
     297
    279298END.
Note: See TracChangeset for help on using the changeset viewer.