PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Radio Button Properties  (Read 768 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 296
    • View Profile
Radio Button Properties
« 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?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Jane Raymond

  • Staff
  • Diamond Member
  • *****
  • Posts: 280
    • View Profile
    • PVX Plus Technologies
Re: Radio Button Properties
« Reply #1 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
Jane Raymond
Software Developer
PVX Plus Technologies Ltd.

James Zukowski

  • Diamond Member
  • *****
  • Posts: 296
    • View Profile
Re: Radio Button Properties
« Reply #2 on: May 17, 2022, 02:34:53 PM »
Just what I needed. Thanks!
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services