LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read data in the first column selected in a Multicolumn listbox

Solved!
Go to solution

When a row is selected in a multicolumn listbox (1 item), how do I go about reading the data in the first column?

 

Image1.gif

0 Kudos
Message 1 of 3
(3,770 Views)
Solution
Accepted by topic author Eric1977

The multicolumn listbox itself is numeric array data type. If you have allowed selection of only 1 item and selection mode of select entire row, it returns the row number. Use the "Item Names" property node to return a 2d array of strings of the items in your box. Index it by the row from the value of the listbox and column 0. See attached code.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 3
(3,768 Views)

I figured that was the solution but I was on the slight hunch that there might be a property or method that could useto tell me this. Thank you.

0 Kudos
Message 3 of 3
(3,760 Views)