LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear a combobox dynamically

Solved!
Go to solution

Ok I know this has been asked before but all the answers are not working for me, so I ask again

 

My Vi requires a combobox to be used mulitple times with different values in. It is therefore created dynamically.

This means I have to clear the contents of the combobox before loading the next values.

 

I seemed to have misunderstood a previous declared solution.

 

I tried the method of creating a ref to the combobox, then a control ref from that, then linking that to a combo box property node and clearing the values string[] and value.

 

jessica_kh_0-1698314334912.png

However I must be creating the control reference incorrectly as it is zero and I get a runtime error.

 

To get a reference I have to set it from the combobox reference then it runs but does not clear the combobox.

jessica_kh_1-1698314577892.png

Any help would be appreciated.

 

Jessica

 

 

 

 

0 Kudos
Message 1 of 2
(575 Views)
Solution
Accepted by topic author jessica_kh

Hi Jessica,

 

why do you need an additional reference control and a local?

 

This one works for me:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(559 Views)