How option button works?

monteiromonteiro Member Posts: 26
Hello,

It's a simple question, but I'm breaking my head... ](*,)

When I insert a option button in a form, I inform the SourceExpr with a boolean variable and run the form, I click in a Option but nothing happens (not true or not false).

I have another option button (my idea was when one true, other false) but don't works... :-k

Thanks in advance.
Monteiro, Rodrigo
www.draeger-medical.com

Answers

  • KYDutchieKYDutchie Member Posts: 345
    Hi,

    did you set the OptionValue in your option button properties?

    Regards,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Yes, I think you miss OptionValue. But if there are only two values (true and false) maybe it's easier to use CheckBox.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • monteiromonteiro Member Posts: 26
    Thank you KYDutchie and einsTeIn.NET

    Really I didn't set OptionValue property. But this property shouldn't be set depending the boolean variable in SourceExpr? Sorry, in truth is the first time I use this control...
    Monteiro, Rodrigo
    www.draeger-medical.com
  • kinekine Member Posts: 12,562
    You set this property to value, which you want to set when the control is clicked (or when the control will be showed asselected). It means on the control which is for the "True" you set it to True and in the second one to False...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • monteiromonteiro Member Posts: 26
    OK, kine. Thank you too. Now it's works. :D
    Monteiro, Rodrigo
    www.draeger-medical.com
Sign In or Register to comment.