How does the third one give me the *row numbers* of the highlighted rows other 
than sequentially searching for each item? That was my original question.

I want to use a collection based list box to represent data from a remote 
source. I only need to load enough data to display the visible rows. But the 
selection model that returns a collection of objects rather than the row 
numbers makes this impractical. 

I'll make a feature request.

Thanks,

John DeSoi, Ph.D.



> On Jul 29, 2018, at 7:28 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> there are 3 properties you can have 4D manage automatically (that is, 
> read-only by code)
> 
> current item (typically an object)
> current item position (typically numeric), and
> selected items (typically a collection)
> 
> http://doc.4d.com/4Dv17/4D/17/List-box-specific-properties.300-3743666.en.html
> 
> use the 3rd one.
> 
> 2018/07/30 0:27、John DeSoi via 4D_Tech 
> <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>>のメール:
> 
> Is there a way to get all of the highlighted row numbers for a collection 
> listbox? It seems you can only get the first highlighted row number via the 
> currentItemPosition property. The selectedItems property would return a 
> collection of highlighted items, but at best you would have to sequentially 
> search the collection to determine the position for each object.

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to