07-08-2013 01:28 AM
"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.
Solved! Go to Solution.
07-08-2013 02:02 AM - edited 07-08-2013 02:02 AM
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.
07-08-2013 02:22 AM
Got it. So basically what you're saying is that what I'm experiencing and how I'm handling it are both normal?
07-08-2013 02:35 AM
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.