From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

re-initalize Listbox to default values

Solved!
Go to solution

Using LabVIEW 2010.

 

It seems that an Invoke Node to Reinitialize to Default for a Listbox does not work. I have to wire an empty array to the Listbox's Item Names Property Node.

 

Am I doing something wrong?

 

 

 

0 Kudos
Message 1 of 4
(2,844 Views)
Solution
Accepted by topic author nyc_(is_out_of_here)

mmm, I tried it myself, and it doesn't work either.

In the other hand I used to initialise them by wiring a constand empty string.

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 2 of 4
(2,843 Views)

Reinitialize To Default (whether done programatically or from the front panel, only affects the Value of a control, not any of the other properties (such as the items in the list).

 

Message 3 of 4
(2,794 Views)

The "value" of a Listbox appears to be the selected items index and not the items in the Listbox.

 

Just seems odd there is no quick way to clear out a listbox short of wiring an empty array.

 

 

0 Kudos
Message 4 of 4
(2,789 Views)