[Lazarus] Example requested for TList and Sort using data type of Object (or record).

Marcos Douglas md at delfire.net
Wed May 11 14:30:03 CEST 2011


On Wed, May 11, 2011 at 3:51 AM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
>
> function SortComponentsForName(Item1, Item2: Pointer): integer;
> var
>  Comp1: TComponent absolute Item1;
>  Comp2: TComponent absolute Item2;
> begin
>  Result:=CompareText(Comp1.Name,Comp2.Name);
> end;

I did not know about 'absolute' yet... what is the vantage?
Can you give me a link about it, please?

Marcos Douglas




More information about the Lazarus mailing list