Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option Group no reseting values
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00365045
Message ID:
00365193
Views:
12
First, you don't have to look at, or set the value of the individual buttons. The option group itself has a value property that reflects the current selection. (i.e. it will be 1 if the first option is selected, 2 if the second.)

The problem you're having is you're using the wrong method. The interactive change is too early. Try the Click method instead.


>I have an option group where the button count is 2.
>All I want to do is reset the value of the control source every time the user clicks on one of them.
>So I say in the InteractiveChange something like this:
>DO CASE
> CASE .opgroup.option1.Value = 1
> ThisForm.myProp = 'A'
> .opgroup.option2.Value = 0
> CASE .opgroup.option2.Value= 1
> ThisForm.myProp = 'B'
> opgroup.option1.Value = 0
>ENDCASE
>
>But it won’t reset the values, when I close the form and then I open it again it comes back with BOTH options checked!
>What am I doing wrong?
Previous
Reply
Map
View

Click here to load this message in the networking platform