clearing a combobox

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

I keep getting an error when trying to do

cbo.items.clear() to clear the data out of a combobox at
runtime.

It states that items cannot be modified with a datasource
set.

How, specifically, can I clear everything out of a combobox
 
Hi mike,
I think the answer is clear the datasource or if it that is not the idea,
disconnect it from the combobox.
Cor
 
mike said:
I keep getting an error when trying to do

cbo.items.clear() to clear the data out of a combobox at
runtime.

It states that items cannot be modified with a datasource
set.

How, specifically, can I clear everything out of a combobox

Disconnect the data source from the control.
 
Back
Top