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
Forum topic · General Scripting
Get selected radiobutton text
By ce89 · 2016-10-03
Description
Comments (2)
ce89 · 2016-10-05
Hi Pixamoon,
Sorry only just got round to trying out your code. Works fantastic!
Thank you very much
`
pixamoon · 2016-10-03
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