LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display highlighted row of listbox

Solved!
Go to solution

I would like to highlight a line in the multi column listbox and read the row number.

I need this number to continu in my programm.

0 Kudos
Message 1 of 5
(5,103 Views)

The value of a listbox is the selected (or high-lighted) index in the list. You can alter and read this by the terminal, property (value) or a local variable.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 5
(5,096 Views)

Thank you Ton, for your reply,

 

But I do need the row number. I need all the row values and a adjust them in on other programm. Afterwards I want to replace them in the listbox. In the mean time the highlighted values might change and I need to be sure to replace the new values with the old ones.

I is also possible to have more of the same value rows in the list box and I need to adjust the one I selected in first place.

So still, is there a way to show (read) the selected row number?

0 Kudos
Message 3 of 5
(5,091 Views)
Solution
Accepted by topic author RvG

Maybe this:

double click on row will return data

0 Kudos
Message 4 of 5
(5,084 Views)

 


@RvG wrote:

Thank you Ton, for your reply,

 

But I do need the row number. I need all the row values and a adjust them in on other programm. Afterwards I want to replace them in the listbox. In the mean time the highlighted values might change and I need to be sure to replace the new values with the old ones.

I is also possible to have more of the same value rows in the list box and I need to adjust the one I selected in first place.

So still, is there a way to show (read) the selected row number?


 

I don't understand your issue. The value of a listbox is/are the selected row(s) numbers, or do you need the strings in the selected rows?

 

What code do you have at the moment?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 5
(5,067 Views)