09-06-2012 09:32 AM
Hey,
Very new to LabVIEW, but I was wondering if there was a way to update the items in a combo box based on user selections.
Specifically what I want is to have multiple combo boxes with the same list of items and when the user selects an item in one
combo box I want the item to be disabled or removed in the other combo boxes. This will then need to be reset when the
program stops.
This is for a scale calibration and each item is a specific weight. They need to be removed from the options to eliminate possible
mistakes.
Thanks in advance for any help,
dnorman
09-06-2012 02:02 PM
If you right-click on the combo box, go to Create->Poperty Node->Strings[]. Change it to write. Wire up an array to this property and the combo box will have the values available from the array.
09-06-2012 03:56 PM - edited 09-06-2012 03:57 PM
To add to what crossrulz said, you can do a check of what is selected in the other combo boxes, and remove that element from the array before you update the strings[] properties for the other combo boxes. You will also have to remember to add it back in to the other combo boxes as an available option if the user selects somethign different in a combo box. You can do all this in the event structure by handling the value change events.