PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: James Zukowski on May 17, 2022, 11:42:18 AM

Title: Radio Button Properties
Post by: James Zukowski on May 17, 2022, 11:42:18 AM
Is there any way to obtain the properties for a specific entry in a Radio_Button group? For example, how could I determine whether RB.Ctl:3 is disabled or hidden?
We've got some older programs that will be updated in the future. When they're all done, we'd like to simply remove or hide the specific button that refers to those programs and have conditional references adjust the text accordingly.
Any ideas?
Title: Re: Radio Button Properties
Post by: Jane Raymond on May 17, 2022, 11:52:39 AM
If your radio buttons are called rb, then you can check the individual properties by setting the id property to the button index:
rb.ctl'id=1
PRINT rb.ctl'enabled
Title: Re: Radio Button Properties
Post by: James Zukowski on May 17, 2022, 02:34:53 PM
Just what I needed. Thanks!