SetText() on a Radio Button

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,697
Location
Near Portsmouth, UK
Radio buttons have no SetText() method

Code:
<RadioButton ID="Radio" String="Some text" RadioGroup="RadioGroup"/>

Controls.Radio:SetText("New text")

gives an "attempt to call method 'SetText' (a nil value)" error

You need to use

Code:
Controls.Radio:GetTextButton():SetText("New text")

Also works for check boxes.
 
Top Bottom