Hi Cecil,
I think I had this problem before. Please check the whole thread
Re: Bug with option group in VFP6? Thread #
830472 Message #
830587>Yep, I did that already. I even did ThisForm.OptionGroup1.Option2=1 and then ThisForm.OptionGroup.Option2.Click() and then even SetFocus(), still same problem. I have to physically click on that 2nd radio button to get the first radio button to turn off.
>
>Still showed both the first and second buttons with the dot inside it.
>
>>You should work with option group as whole. Something like
>
>OptionGroup.Value = 2
>
>>>I have a set of radio buttons in a Group, as well as a checkbox control. When I click on the checkbox control, I expect it to set the value of OptionGroup.Option2 to 1.
>>>
>>>It works fine, unless I first select a radio button such as Option1 or Option3 and so on; then when I click on the CheckBox that sets the Option2 on, I see that both Option1 and Option 2 are selected. But, how can this be? Do I specifically need to check each Radio Option Button to see if any of them have a value of 1 before I set the value of Option2 to 1 (or on)?
>>>
>>>Does anyone understand what I wrote above?
If it's not broken, fix it until it is.
My Blog