Search the Community
Showing results for tags 'sorting'.
Found 1 result
In the attached VI, I have an editor of sorts which permits the modification of a list of strings. There is a listbox which displays the list in sorted order, and a text box used for modifying the currently selected item. I'm struggling with determining the best approach to maintain selection in the listbox after sorting takes place. The only solution I've really come up with is to do a linear search for the new value in the listbox's ItemNames array and set the listbox's value accordingly, but I'd like to be able to allow duplicate values. In that case, the search obviously creates some odd behavior. Does anyone have any suggestions on how to create a sorted listbox that maintains selection when trying to edit one of the items? Thanks for your help! Sorted Listbox Example.vi