[Lazarus] Dynamic Form Components - SynEdit Help Please...
Martin Frb
lazarus at mfriebe.de
Mon Oct 3 23:52:08 CEST 2016
See mail from Mattias.
On 03/10/2016 22:17, Martin Collins via Lazarus wrote:
>
> If IsPublishedProp(Comp, 'Lines') then
> begin
> PropInfo := GetPropInfo(Comp, 'Lines', [tkClass]);
SynEdit.Lines is TStrings, not TStringList.
> HTMLFile := TStringList(GetObjectProp(Comp, PropInfo, TStrings));
If anything, you get a reference to the SynEdit.LInes object, but you do
NOT create a new object here
>
> HTMLFile.Free;
So this then is the same as
SynEdit.Lines.Free;
And that you should not do.
More information about the Lazarus
mailing list