ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically edit combobox

Need to programmatically edit (add and remove) items from combobox dropdownbox in run-time application.

 

This must be common task, however both online examples found do not work.

 

Suggestions?

0 Kudos
Message 1 of 7
(4,156 Views)
you can use the visible property node
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 7
(4,152 Views)

Harold Timmis wrote:
you can use the visible property node

Umm... that would just hide/show the control. ???

 

To edit the list of items, just use the String[] property. What examples are you referring to?

0 Kudos
Message 3 of 7
(4,149 Views)
wow I missed the question sorry about that, I don't know why I thought of checkbox when you said combo box
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 7
(4,144 Views)

Examples that do not work:

 

This one does not work run-time.
http://digital.ni.com/public.nsf/allkb/1E180530E05E4DB28625731C006CCB5A?OpenDocument). 

 


This one simple does not maintain items while editing them.

http://decibel.ni.com/content/docs/DOC-6265).

0 Kudos
Message 5 of 7
(4,133 Views)

The first link you provided doesn't point to an example. It points to a generic KB article about some properties and/or methods not being available in the Run Time Engine.

 

The second link you pointed to is an XControl, not a combobox. Totally different beast. Your original question was how to programmatically add/remove items from a combobox. As noted, this is done by updating the Strings[] property. If you are having problems with that XControl then you need to post in that community page so the author of the control can help. 

0 Kudos
Message 6 of 7
(4,119 Views)
A five minute example.  It doesn't operate quite like I would expect from a real app, but it illustrates the Strings[] property
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 7 of 7
(4,110 Views)