[Lazarus] Example requested for TList and Sort using data type of Object (or record).
Graeme Geldenhuys
graemeg.lists at gmail.com
Wed May 11 20:50:03 CEST 2011
On 11 May 2011 14:35, Sven Barth <pascaldragon at goo*****> wrote:
> function SortComponentsForName(Item1, Item2: Pointer): Integer;
> var
> Comp1, Comp2: TComponent;
> begin
> Comp1 := TComponent(Item1);
> Comp2 := TComponent(Item2);
This is what I have always been using.... Is one method more efficient
(generated code) than the other?
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
More information about the Lazarus
mailing list