11-13-2009 12:01 PM
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?
11-13-2009 12:03 PM
11-13-2009 12:06 PM
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?
11-13-2009 12:10 PM
11-13-2009 12:19 PM
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.
11-13-2009 12:27 PM
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.
11-13-2009 12:58 PM