Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option Group no reseting values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00365045
Message ID:
00365446
Vues:
15
Edgar,
Use the OptionGroup value, not the value of the buttons. The group value is the value of the button that is selected.
DO CASE
	CASE .opgroup.Value = 1
		thisForm.myProp = 'A'
	CASE .opgroup.option2.Value= 1
		ThisForm.myProp = 'B'
ENDCASE
If you use View Source to look at this message, you'll see how to use the PRE and /PRE tags to format code with indents.

HTH
Barbara



>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?
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform