Thema: Delphi Tstrings als VCL

Einzelnen Beitrag anzeigen

jbg

Registriert seit: 12. Jun 2002
3.481 Beiträge
 
Delphi 10.1 Berlin Professional
 
#14

Re: Tstrings als VCL

  Alt 8. Mär 2005, 14:20
Zitat von Stevie:
property Strings: TStrings read FStrings write FStrings;
Crash mit AV.

Wenn dann schon so:
Delphi-Quellcode:
private
  procedure SetStrings(Value: TStrings);
published
  property Strings: TStrings read FStrings write SetStrings;
end;

procedure TStringsContainer.SetStrings(Value: TStrings);
begin
  FStrings.Assign(Value);
end;
  Mit Zitat antworten Zitat