Registriert seit: 27. Apr 2003
Ort: Bad Honnef
1.644 Beiträge
Delphi 2009 Professional
|
Re: Eigene Komponente -> TStringList -> Zugriffsverlet
31. Aug 2004, 21:25
Hallo,
so klappt es bestimmt:
Delphi-Quellcode:
TFoo = class(TComponent)
private
FMyList : TStrings;
...
public
constructor Create(AOwner : TComponent); override;
...
published
property MyList : TStrings read FMyList write SetMyList;
...
procedure TFoo. Create(AOwner : TComponent);
begin
inherited Create(AOwner);
FMyList.:=TStringList.Create;
end;
procedure TFoo.SetMyList(Value : TStrings);
begin
FMyList.Assign(Value);
end;
I come from outer space to save the human race
|