- Dan Cooperstock
- PowerBuilder
- Saturday, 13 April 2024 07:16 PM UTC
I have a radiobutton style column in a DW (PB 2021) that normally has 3 options. However, depending on some situations I need to change it to only 2 or only 1 option, with varying text. To set it to only 1, I use code like:
dw.object.columnName.values = "some text~tsome value/"
After doing that, the control entirely disappears. (And that's whether or not there is a trailing forward slash.) If I instead change it to have 2 options, it displays fine.
Is this a known bug? Something I'm misunderstanding?
Sure, I know that normally radio buttons don't have only one option, but if I create it like that (one option) in the painter it's fine. It's only when I change it at runtime that it disappears.
Thanks.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.