LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo box save while in Runtime application

Solved!
Go to solution

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...??

 

 

0 Kudos
Message 1 of 6
(3,363 Views)

Combo box VI

0 Kudos
Message 2 of 6
(3,360 Views)

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.

Spoiler
FireFistRedhawk_0-1625226279622.png

 

Redhawk
Test Engineer at Moog Inc.

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.

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

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

0 Kudos
Message 4 of 6
(3,313 Views)
Solution
Accepted by topic author Tusharvp4

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.

Redhawk
Test Engineer at Moog Inc.

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.

Message 5 of 6
(3,306 Views)

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...

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