Help Contents / GUI programming / ChoiceBoxes / ChoiceBoxSetItem

ChoiceBoxSetItem achoicebox index choice

Command to change the item at position index of the ChoiceBox achoicebox to the text of the thing choice. 

index must be an integer number index >= 0 and index < number of choices in the ChoiceBox. 

Example: 

	cb=(ChoiceBox [][MyChoiceBox] 
	[	[String 1] 
		[and a second string] 
		[and the last string] 
	] 
	[	(show "|MyChoiceBox| ChoiceBoxSelection) 
	]) 
	ChoiceBoxSetItem cb 1 [a changed item] 


previous: ChoiceBoxAppend	next: ChoiceBoxRemoveItem
