Great example Dan,
I've added to it with a "delete" function. it will delete the element you've
highlighted in the listbox. You can also re-order the list elements by
enabling "Item Dragging" for the listbox.
And just to be sure, you can "output" your listbox elements into an array
to check you're edited listbox.
Dan, I do have a question for you though, Why is the functionality of the
controls different when they are placed of the inside the Event structure or
outside the event structure?
Regis
"analog" wrote in message
news:50650000000500000093350100-1066448259000@exchange.ni.com...
> Dan,
>
> How do you delete items in the listbox according to the buttons
> clicked...same with insert, except now I wa
nt to delete after user
> click on either buttons A, B, and C? As of right now, I can only
> delete items that are highlighted in the listbox. Also, right now
> when you clicked on the button, it latched and then release, so if you
> hit it twice, it will put in two of the same buttons in the list. I
> tried changing it to "switch when latch," but it still put in the
> same name twice if you hit it twice. Is there a way the VI will
> remember the state of the button (true or false) then put the button
> in ONLY if it's true; so if the user turns the button on, then changes
> his/her mind and turns it off, it will NOT put the button in the list?
> Sorry I asked a lot of question, I hope you don't mind.
>
> Thank you very much 😛
[Attachment Button_listbox_(PrimeTest).vi, see below]