07-02-2021 05:51 AM
I am using combo box for adding new data..This solution is working absolutely fine in programming mode.
But after converting into application..Why combo box is not saving permanently new added data...??
Solved! Go to Solution.
07-02-2021 05:53 AM
Combo box VI
07-02-2021 06:45 AM
To answer your question, your "new element/subarray" needs to be on the inside of the while loop. Additionally, you can leave the 'index' input of Insert Into Array unwired if you're just adding stuff to the end, that's the default behavior of it if you don't wire an index. But the even cleaner way to do that is with Build Array.
No idea what your Edit.vi is supposed to be doing but it's not part of your question so I won't bother going there.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
07-02-2021 07:02 AM
Thank you correcting my mistake...
I am using combo box for searching editing , deleting , adding a database..
I can add an item in database and even in run time application..
But when I turn off and turning on application..
I can not get previously added iteams in combo box
07-02-2021 07:15 AM
Ohh ok, well in that case you have some extra work to do. You can't add strings to a combo box like that in runtime and expect them to be there once there application is restarted. Easiest way to accomplish that would be to store the strings in a text file somewhere on the computer, load them when the application starts and add new strings to the text file.
Play around with the VIs in the File I/O palette if you're not familiar with them.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
07-02-2021 11:29 PM
Thank you for giving solution...
I was thinking that in the run time , Combo box works same as in programming..
Now, I am loading "COMBO BOX" data by writing a query...