10-05-2008 02:38 PM
Hi experts,
I am developing an application which should allow the user to add/edit their own fields in the combo box. The attached vi allows the user to add/edit fields in the combo box. but when we run the the program next time the added/edited fields are not available in the combo box.
Suggest me how to programmatically save the contents of combo box, so that it will retain its previous values in the next run.
Thanks.
10-05-2008 04:53 PM
I would add a config file that would contain the items that you want in the combo box. If the user adds/edits the items, the application would update the config file. Each time the application loads, it will collect the items from the config file and put them in the combo box.
I hope this helps.
09-16-2009 08:59 AM
Hello tunevr,
You have a good start with your code, except I have noticed a couple things.
1) The string array in the subVI does not get saved, so every time you run the VI it has the original three items
2) Since we are editing/modifying a control within the VI at run-time, all changes will be lost if we do not save the VI. Thus we either have to manually save it or invoke the Save VI method.
I have made a couple modifications to your code and posted it to the Community.
http://decibel.ni.com/content/docs/DOC-6791