ChoiceBoxSetItem

Help Contents GUI programming ChoiceBoxes ChoiceBoxSetItem
ChoiceBoxAppend ChoiceBoxRemoveItem

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]

Reference:

ChoiceBoxAppend ChoiceBoxRemoveItem