LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ListBox-Limited number of selected items.

Dear Sir or Madam,

I would appreciate any comment or suggestion on the following question.

How I can limit the number of items selected in a ListBox?

Assume that you have 3 items but I want to have 1 or 2 selected items
but no more.

The selection mode: (0 or more) or (1 or more) does not work for me in
this case.

Thanks in advance for your Help.

Luis Diaz-Ballote.
luis_diaz_ballote@hotmail.com
0 Kudos
Message 1 of 2
(2,760 Views)
Hi Luis

I have done something similar, except I used the tick symbol to indicate
that the item has been selected and used '0 or 1' selection mode.

The steps would be:

- check if the listbox value
- if the value has changes or >-1 and there is no tick there then put a
tick
- if the value has changes or >-1 and there is a tick there then put
remove the tick

I hope this alternative helps

Tim


Luis Diaz wrote:

> Dear Sir or Madam,
>
> I would appreciate any comment or suggestion on the following question.
>
> How I can limit the number of items selected in a ListBox?
>
> Assume that you have 3 items but I want to have 1 or 2 selected items
> but no more.
>
> The selection mode: (0 or more) or (1 or more) does not work for me in
> this case.
>
> Thanks
in advance for your Help.
>
> Luis Diaz-Ballote.
> luis_diaz_ballote@hotmail.com
0 Kudos
Message 2 of 2
(2,760 Views)