LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to select Index in a Listbox

Hello,

i have a listbox with 10 lines.

How can i change the selected line with a property? (So that it is marked after this).

 

Thx

0 Kudos
Message 1 of 6
(3,443 Views)

Use a local variable set to write, or use the property node Value/Value Signal.  Write the index you want selected where the top item is 0 and selecting no items is -1.

Message 2 of 6
(3,435 Views)

Hi,

i already tried it with valu/value_signaling but perhaps wrong.

Can you edit my attached example and show me how to do it?

 

Thank you

0 Kudos
Message 3 of 6
(3,432 Views)

No need for me to edit and upload a new one, literally all I did was change the "Active Row" property node to the Value property node and it worked.  Changint the SelectLine control changed the selected row, adn the "element" control showed the selected string.

Message 4 of 6
(3,422 Views)

Strange, now it works here also.

I could swear it didnt before.... 🙂

Thx for testing

0 Kudos
Message 5 of 6
(3,415 Views)

No problem.  One other tip, if your listbox is going to be strictly used as an indicator, only showing the user a selected row and not allowing them to click it to change it, you can write your value directly to the terminal, if you change the control to an indicator.

Message 6 of 6
(3,412 Views)