Remove all items from G4P Droplist

The droplist control does not like to be empty. The best thing is not to empty the control but simply replace the existing items with a new set of items.

// dlst = a droplist control
// items = an array or list of Strings
// index = the index number for the selected item
dlst.setItems(items, index);
2 Likes