LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reinitialize to default value not working

Solved!
Go to solution

"Reinitialize to default value" is not working for my multicolumn listboxes, but it working for my string indicators.  Anyone ever run into this before?  

 

I've tried removing all of the elements and setting "make current value default", but after another run of the program, still not reseting to nothing.  I have to do it programmatically in my code, and I can't do it using the VI Server Reference to reset them all at once.  I have to set the string arrays individually to null.

 

I am using a lot of property nodes in my consumer loop to read/write values to the front panel.  Not sure if this is related.

 

 

 

 

Thanks.

0 Kudos
Message 1 of 4
(3,364 Views)
Solution
Accepted by ksh@NI

This happens because the value of a multicolumn listbox is a numeric scalar or array (depending on the control's selection mode) expressing which row or cell is currently selected.

"Reinitialize to default value" only resets values and not other properties. In this case, it's the ItemNames property that hosts what we intuitively consider the mc listbox value, but it's not.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(3,355 Views)

Got it.  So basically what you're saying is that what I'm experiencing and how I'm handling it are both normal?

0 Kudos
Message 3 of 4
(3,350 Views)

Yes. This is a common misconception about selection controls like listboxes, rings and sometimes combo boxes.

In this last case however it's generally aknowledged that the control's value is the text of the selected item, not the combo list.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 4
(3,343 Views)