Help Contents / GUI programming / ChoiceBoxes / ChoiceBoxSelection

ChoiceBoxSelection
(ChoiceBoxSelection achoicebox)

outputs the selection of the ChoiceBox achoicebox, or if called without an argument, of the ChoiceBox that processed the last OnSelect event. 

The output value is a zero-based integer, representing the nth choice. 

Example: 

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


previous: ChoiceBoxDestroy	next: ChoiceBoxSetSelection
