Further to that, I think it is because you name a Key column in the ListView 
and an array is maintained that works in a manner I described in my first 
email, whereas a ListBox is placing the SELECTION directly in the variable from 
the onclick event which occurs both on SELECT and DE-SELECT.

So it's Apples and Oranges, but notable.  I only checked the ListBox initially 
because it was the Subject.  ListView is behaving as you want, so that is what 
I would use.

----- Original Message ----- 
From: "MikeB" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, July 15, 2008 11:27 AM
Subject: [RBASE-L] - Re: Multi-select List Box


> Ok, I missed that Larry said ListView.
>
> The topic started out ListBox.
>
> The selection behavior between the two are not the same.
>
> The Listbox behaves as I described previously, but the ListView "unravels" 
> the
> Items so that the last item in the list is the last item remaining in the
> SELECTED state whereas if you de-select the item in the ListBox, the
> deselection places it at the end of the list .. No kidding.. hmmmm
>
>
>
>
> ----- Original Message ----- 
> From: "MikeB" <[EMAIL PROTECTED]>
> To: "RBASE-L Mailing List" <[email protected]>
> Sent: Tuesday, July 15, 2008 10:38 AM
> Subject: [RBASE-L] - Re: Multi-select List Box
>
>
>>
>> ----- Original Message ----- 
>> From: <[EMAIL PROTECTED]>
>> To: "RBASE-L Mailing List" <[email protected]>
>> Sent: Tuesday, July 15, 2008 10:00 AM
>> Subject: [RBASE-L] - Re: Multi-select List Box
>>
>>
>>> Larry!!!!   As the Guinness guys say, Brilliant!  Sometimes the obvious
>>> thing
>>> is the hardest to see.  Of course, the last item you clicked would be the
>>> LAST one in the list, wouldn't it???
>>>
>>> I will probably go ahead and implement this, but just for my education, how
>>> would I do the following, List?
>>> 1.    Have multi-select always ON so they can select multiple rows
>>> 2.    Have a right-click eep on a row that would bring up a detail form for
>>> that row
>>
>>   There is a caveat.. It will work OK so long as you don't de-select an 
>> item,
>> since the de-select will also  put the deselected item in the value of
>> vThisID (tested)..
>>
>>
>>
>>
>>> BTW: on a right-click eep on a multi-select, can you just hover over the 
>>> row
>>> and right-click, or do you have to click first then right-click.
>>>
>>> Karen
>>>
>>>
>>>> If you attach the variable vList TEXT to the Variable Lookup Listview and
>>>> select a few records, the ID of the most recently selected record is the
>>>> last
>>>> item in vList.  You can pull it off in your button EEP with
>>>>
>>>> SET VAR vThisID = (SSUB(.vList, ITEMCNT(.vList)))
>>>>
>>>> and then operate (eg edit with the detail form) on that last selected
>>>> record
>>>> only.
>>>>
>>>> It also works in the on-click eep for the list view, so you can
>>>> automatically update the display based on the last selected record while
>>>> maintaining all
>>>> the selections.
>>>>
>>>> Is that what you're looking to do?
>>>> --
>>>> Larry
>>>>
>>>
>>>
>>
>>
>>
>
>
> 


Reply via email to