[Lazarus] Declare record variant in it self

Mattias Gaertner nc-gaertnma at netcologne.de
Thu May 7 12:09:00 CEST 2015


On Thu, 07 May 2015 03:02:42 -0700
aradeonas <aradeonas at operamail.com> wrote:

> Thanks Michael.
> 
> Is there a way so I can use class with no need of create and destroy?So
> in this way I can even make simple functions in my class.

Maybe you mean something like this:

  TMyBaseRecord = object
    s: string;
  end;

  TMyRecord = object(TMyBaseRecord)
    ER: TMyBaseRecord;
  end;

Mattias




More information about the Lazarus mailing list