Is there a way to refresh the values of a ListBox? Or perhaps clear all of the current values so that I can append new values? Below is a simple example where my initial list is unsorted but if the button is clicked, the values will appear in sorted order.
This is sort of what I think I need to make a conditional listbox. But it doesn't quite work. The problem is that when I try to select an item it doesn't allow me to (only flashes the selected element gray in the listbox. Any ideas of what might allow me to select an item after implementing this code?