10-29-2021 01:03 PM
I would like to realize a VI where I can add, remove and modify the order of states in a list.
The Idea is select the Test from Combo Box Test and after to press the control Add in the List Box had been adding the Test and in the Tab control the User can modify parameters.
If I select a Item in the list and after press Remove the test selected must be deleting.
The
For modify the order from list it will be easy as we can modify the order when edit the items in the Combo Box, dragging the items.
Finally when I press Save, create a .txt with the Test and them parameters.
10-29-2021 01:18 PM
How far did you get and where did you get stuck?
10-29-2021 01:26 PM
I dont know how to add, remove and modify the order in a list.
10-29-2021 01:30 PM
@RicardoCuevas wrote:
I dont know how to add, remove and modify the order in a list.
altenbach is implying that you upload your actual code so we can see how far you've gotten and what we can help you with.
10-29-2021 01:47 PM
I assume you are talking about the listbox when you say list.
The "value of the listbox is the selected item and the "items" is an array of strings. (assuming you have it set to "0 or 1 item" and not multiple).
I would keep that array in a shift register and use buttons to operate on the selected item by doing an array operation on the items and then rewrite them. You already have "add" and "remove", so to change the order, easiest would be to also add a "move up" and "Move down" button.