annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Clear a combobox dynamically

Risolto!
Vai alla soluzione

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
Messaggio 1 di 2
1.198Visualizzazioni
Soluzione
Accettato da autore argomento 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
Messaggio 2 di 2
1.182Visualizzazioni