![]() |
tstrings als property
Hi,
Delphi-Quellcode:
Sollte doch ohne Probleme gehen, oder? Wenn ich aber im OI den TStrings-Editor öffnen will, kommt folgendes:
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; Zitat:
|
Re: tstrings als property
Delphi-Quellcode:
mfG
procedure TMozillaCookies.SetComment(Value: TStrings);
begin if Value <> nil then fComment.Assign(Value); // eventuell: // else fComment.Clear; end; mirage228 |
Re: tstrings als property
Danke für deine Antwort aber der Fehler kommt immer noch. Noch eine Idee :?:
|
Re: tstrings als property
Der Fehler kommt auch eher beim Auslesen der Eigenschaft.
|
Re: tstrings als property
Hallo,
Zitat:
Gruß Hawkeye |
Re: tstrings als property
Zitat:
mfG mirage228 |
Re: tstrings als property
Zitat:
Delphi-Quellcode:
function TMozillaCookies.GetComment:TStrings;
begin Result := fComment; end; |
Re: tstrings als property
Zitat:
|
Re: tstrings als property
Zitat:
|
Re: tstrings als property
Zitat:
Delphi-Quellcode:
fComment := TStrings.create;
//fComment.create; ebenfalls |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:29 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz