LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How To Read and Write with Listbox

In the List Box, how do I make it so that the empty rows are not selectable? For example, if the System is "Slip Limits", there are only 3 Items in the List Box, but I can click 10 rows down. I only want to be able to click the first 3.
 
Also, how do I make the List Box default to "nothing selected" whenever I select another System from the Drop Down box?
 
(Thanks for your help!)

\
Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.
0 Kudos
Message 11 of 13
(2,192 Views)
For the first question: You need to fix your array constants. Your array constants have blank strings, and so the listbox is displaying exactly what you're writing to it. Make the "Index Display" visible for the array controls, and you'll see the blank constants. To delete them, right-click on the blank string and select Data Operations->Delete Element.

For the second question: Write a -1 to the "Value" property of the listbox.
0 Kudos
Message 12 of 13
(2,186 Views)

Ah! Much better!

Thank you, and Happy Holidays!


\
Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.
0 Kudos
Message 13 of 13
(2,180 Views)