Ok, thanks. Got it now.

Staffan



On Thu, Jan 31, 2013 at 5:38 PM, Mark Miesfeld <miesfeld@gmail.com> wrote:
On Thu, Jan 31, 2013 at 8:15 AM, Staffan Tylen <staffan.tylen@gmail.com> wrote:
However, the next question is, have you attached a LvFullRow object as the data item for every item in the list-view?  If not, the sort won't work.

If you attach a LvFullRow object as the data item for some, but not all, of the list-view items, the outcome is non-deterministic.


Hmm, no I haven't. I believe I must have misunderstood the documentation in that case. I've somehow read it that only if something but a row item should be used for internal sorting then this requirement comes into play. Re-reading it I'm unsure how I came to that conclusion. I'll try again.


I don't claim to be a technical writer.  The doc seems clear to me, but it may not be to others.  It is relatively simple:

* There are two types of sorts.  1) The sort is implemented in your Rexx code.  2) The sort is implemented in the internal ooDialog code.

* To use the internally implemented sort, the method name argument must be InternalListViewSort

* To use the sort implemented in your Rexx code, the method name argument must be anything that is not InternalListViewSort

* For either of the two types of sorts, every list-view item must have an object assigned as its data item.

* For the internally implemented sort, the data item must be a LvFullRow item.

* For the sort implemented in your Rexx code, the data item can be any object you want.

--
Mark Miesfeld


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users