Help Contents / GUI programming / ComboBoxes / ComboBoxRemoveItem

ComboBoxRemoveItem acombobox index

Command to remove the choice item at position index from the ComboBox acombobox. 

index must be an integer number index &gt;= 0 and index &lt; (number of choices in the ComboBox). 

Example: 

	cb=(ComboBox [][MyComboBox][Initial string] 
		[	[String 1] 
			[and a second string] 
			[and the last string] 
		] 
		[	(show "|MyComboBox| ComboBoxSelection) 
		] 
		[	(pr [change] ComboBoxValue) 
		] 
		[	v=ComboBoxValue 
			(pr [enter] v) 
			ComboBoxAppend cb v 
		] 
		wxCB_simple [-1 -1][300 200]) 
	ComboBoxRemoveItem cb 1 


previous: ComboBoxSetItem	next: ComboBoxCount
