07-03-2019 12:04 PM - edited 07-03-2019 12:40 PM
I would like to dynamically insert and remove elements from a single column listbox and also limit the total number of entries to 16.
I have done most part, but I'm stuck at the logic of limiting the maximum number of entries to N. The problem is, once the user enters 16 entries, the ADD button is disabled. But even after I delete some older entries using the DELETE logic to free up some space on the listbox, I would like the ADD button to automatically be re-enabled. How do I do this ??
EDIT: I figured it out. However, I am not sure if this is the most efficient method to achieve what I am trying to do here. Attached is the updated VI as well.
Solved! Go to Solution.
07-03-2019 12:36 PM - edited 07-03-2019 12:38 PM
I can't open your file but I assume you have a delete button with an associated event. Enable the add button in that event if the number of items is less than 16. You also probably want to consider disabling the delete button if there are no items, if nothing else, for the sake of UI continuity.
07-03-2019 12:41 PM