Re: TList.Sort
От: ekamaloff Великобритания  
Дата: 02.06.06 10:47
Оценка:
Здравствуйте, GvinPin, Вы писали:

GP>type
GP>  psr = ^sr;
GP>  sr = record
GP>    dateF : TDateTime;
GP>    count : integer;
GP>    ... : ...
GP>  end;

GP>// ...

GP>function CompareSR(Item1, Item2: Pointer): Integer;
GP>begin
GP>  Result := CompareDateTime(psr(Item1)^.dateF, psr(Item2)^.dateF);
GP>end;

GP>// ...

GP>List.Sort(@CompareSR)
... << RSDN@Home 1.1.4 stable SR1 rev. 568>>
It is always bad to give advices, but you will be never forgiven for a good one.
Oscar Wilde
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.