Thema: Delphi tstrings als property

Einzelnen Beitrag anzeigen

Andreas L.
(Gast)

n/a Beiträge
 
#1

tstrings als property

  Alt 13. Aug 2007, 19:20
Hi,
Delphi-Quellcode:
type
  Tblabla = class(TComponent)
  private
    ...
    fComment: TStrings;
    ...
    procedure SetComment(Value: TStrings);
  published
    property Comment: TStrings read fComment write SetComment;
    constructor Create(AOwner: TComponent); override;
    destructor Destroy; override;
  end;

...

procedure TMozillaCookies.SetComment(Value: TStrings);
begin

 fComment.Assign(Value);

end;
Sollte doch ohne Probleme gehen, oder? Wenn ich aber im OI den TStrings-Editor öffnen will, kommt folgendes:

Zitat:
---------------------------
Fehler
---------------------------
nil kann nicht zu TRichEditStrings zugewiesen werden.
---------------------------
OK Details >>
---------------------------
Jemand eine Idee?
  Mit Zitat antworten Zitat