LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I see the numbers of lines selected in a Multiple Selection Box?

Hi everybody,

what I want to do is to get in an array of numbers all the lines selected.
For instance, if I select the rows 1,4 and 7 from a Multiple Selection Box
of 10 rows in total, how can I see that array when the rows 1,4 and 7 are
selected?

Because I want to connect this numbers to Case Structure and if the only
rows selected are 1,4 and 7, the Case Structure will only realize this cases,
and the rest will be ignored.

I'm sure there is some way to get what I want.

Thank you for your helpful.
0 Kudos
Message 1 of 3
(2,811 Views)
If you just wire the list box to an array indicator, you will see that the
output is an array of the selected items. Auto index the array through a
for loop that has your case statement inside.

Dennis Knutson

"Carlos Jorge" wrote:
>>Hi everybody,>>what I want to do is to get in an array of numbers all the
lines selected.>For instance, if I select the rows 1,4 and 7 from a Multiple
Selection Box>of 10 rows in total, how can I see that array when the rows
1,4 and 7 are>selected?>>Because I want to connect this numbers to Case Structure
and if the only>rows selected are 1,4 and 7, the Case Structure will only
realize this cases,>and the rest will be ignored.>>I'm sure there is some
way to get what I want.>>Thank you for your helpful.>>
0 Kudos
Message 2 of 3
(2,811 Views)
THANK YOU VERY MUCH. IT WORKS PERFECTLY!!!


"Dennis Knutson" wrote:
>>If you just wire the list box to an array indicator, you will see that
the>output is an array of the selected items. Auto index the array through
a>for loop that has your case statement inside.>>Dennis Knutson>>"Carlos
Jorge" wrote:>>>Hi everybody,>>what I want to do is to
get in an array of numbers all the>lines selected.>For instance, if I select
the rows 1,4 and 7 from a Multiple>Selection Box>of 10 rows in total, how
can I see that array when the rows>1,4 and 7 are>selected?>>Because I want
to connect this numbers to Case Structure>and if the only>rows selected are
1,4 and 7, the Case Structure will only>realize this cases,>and
the rest
will be ignored.>>I'm sure there is some>way to get what I want.>>Thank you
for your helpful.>>
0 Kudos
Message 3 of 3
(2,811 Views)