06-02-2014 07:00 AM
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
06-02-2014 07:44 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-02-2014 07:56 AM
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
06-02-2014 07:59 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-02-2014 08:04 AM
Strange, now it works here also.
I could swear it didnt before.... 🙂
Thx for testing
06-02-2014 08:06 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord