Page 1 of 1

Example for TableSort.pas?

Posted: Sun Jan 27, 2008 6:24 pm
by DickBryant
Hi Sergey,

Do you have an example project that uses TableSort.pas? I could probably muddle through how to apply it, but a working example would make the process a lot quicker :-) Belated Happy New Year, BTW!

Dick

Posted: Mon Jan 28, 2008 12:50 pm
by Sergey Tkachenko
What's the problem with using this unit?

Code: Select all

var rvet: TCustomRichViewEdit;
    table: TRVTableItemInfo;

  if not RichViewEdit1.GetCurrentItemEx(TRVTableItemInfo, rvet, TCustomRVItemInfo(table)) then
    exit;
  // display your modal form allowing choosing sort options
  // and column (in range 0..table.ColCount-1)
  SortCurrentTable(RichViewEdit1, Column, Ascending, IgnoreCase);

Posted: Mon Jan 28, 2008 1:58 pm
by DickBryant
Thanks - exactly what I was looking for :-)