Share via


Clear Method

Clears the contents of a ComboBox or ListBox control.

Object.Clear

Remarks

The Clear method removes all items from a ComboBox or ListBox control, but only if the RowSourceType property is set to 0 (None). Additionally, it sets the ListCount property to 0.

See Also

AddItem Method | RemoveItem Method | RowSourceType Property

Applies To: ComboBox | ListBox