LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove values from combo box during run time

Hi,
 
I've looked at the examples in the forum and searched through a lot of posts, I can't find any information of how to remove the strings from a combo box during run time. I have two combo boxes, when the value of Combo1 changes, combo2 loads values that correspond to the item chosen. Eg. when Resistor is chosen in combo 1, combo 2 loads values, 10k, 20k, 30k. when capacitor is chosen in combo 1, combo 2 loads 1n, 100n, etc. I am using the events structure, and check for value change of combo 1, I then load the values using string[] in property node. To try and clear the values I used reinitialize to default value using invoke node, but it seems like it makes the values that were loaded first initial values. How do i clear combo 2, so that I can load new values when the values of combo 1 change? My structure is fine, I just need to know how to clear a combo box. Would someone help me, please.
 
Thanks.
 
0 Kudos
Message 1 of 6
(3,552 Views)
Hi,
 
Can anyone help me? Please.
 
ntfan.
 
0 Kudos
Message 2 of 6
(3,543 Views)

Did you try out passing an empty array into the Strings[ ] Property node?

That should clear your combo box

0 Kudos
Message 3 of 6
(3,535 Views)
The way I passed my empty strings - made the empty strings get concatenated and not overwrite the old strings. Thanks. I got around to it.
0 Kudos
Message 4 of 6
(3,510 Views)

hi,

   can be tell me how u solved ur problem?

0 Kudos
Message 5 of 6
(3,030 Views)

Hi sandip,

You are responsing to an 4 year old thread..start a new thread with your question...

0 Kudos
Message 6 of 6
(3,028 Views)