On Aug 1, 2006, at 8:17 AM, CV wrote:

Create a new class, say SortData, and give it two properties: ColumnSorted as integer, SortDirection as string. Add a method called Constructor with parameters: Column as integer, Direction as integer.

Ah yes. I still have to master that business of making a new class.

Put this code in the Constructor of SortData:

   ColumnSorted = Column
   If Direction = 1 then ColumnSortDirection = "ascending"
   If Direction = -1 then ColumnSortDirection = "descending"

Add a property to your window or subclassed listbox: SortHistory (-1) as SortData

In the listbox's HeaderPressed event put this code:

  dim sd as new SortData(column, me.ColumnSortDirection(column))
  self.SortHistory.Append sd

The array, SortHistory, holds all of the sorts in sequence. You can add another method(s) to the SortData class to return sorts. Remember that SortHistory is 0-based, so that the result of the 5th header pressed is SortHistory(4).

This information should help me in doing that.

Thanks.....

Regards,

Chuck
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to