Example for TableSort.pas?

General TRichView support forum. Please post your questions here
Post Reply
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Example for TableSort.pas?

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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);
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post by DickBryant »

Thanks - exactly what I was looking for :-)
Post Reply