I know we can set the items inside a combobox using a list, is there a way to put all items in a combox in a list without having to iterate through the whole combobox?
I just looped through a database rs and added each item that way. Was hoping I could export the items to a list then add and remove and change items and reset the combobox to the new edited list without having to hit the database again.
I just looped through a database rs and added each item that way. Was hoping I could export the items to a list then add and remove and change items and reset the combobox to the new edited list without having to hit the database again.
At the time, you are looping through the database add them to a list instead of the combo box.
At the end of the loop use combobox.setitems to set the list to the combobox.
You now have a list and the items int he combobox.