Get selected radiobutton text

Hi guys, I am writing a little script that names the selected object by the the selected radiobutton and dropdownlist text. With dropdownlist it is simple i.e ddl.selection as string returns the selected dropdownlist text. I cannot seem to find a shorthand way of doing this with radiobuttons. Does anyone know if this is possible or any other preferred methodsupplier? Any help would be much appreciated

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ce89's picture

Hi Pixamoon, Sorry only just

Hi Pixamoon,

Sorry only just got round to trying out your code. Works fantastic!

Thank you very much

pixamoon's picture

`

Hi, try this way around:

LabelsArr = #("Text1", "Text2", "Text3", "Text4")
 
rollout Test123 "Untitled" width:289 height:307
(
	radioButtons rdo1 "RadioButtons" pos:[35,32] width:56 height:62 labels:LabelsArr
 
 
	on rdo1 changed e do print LabelsArr[e]
)
 
createDialog Test123

Cheers,
Pixamoon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.