Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optiongroup Confusion
Message
De
24/01/2002 14:34:04
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
21/01/2002 17:12:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00608043
Message ID:
00610009
Vues:
34
Sandi,

The interactivechange event only fires when the user changes the value property of the control by clicking or typing. When you change the value through code, the programmaticchange event will fire. To solve your problem, call the interactivechange event from the programmaticchange event.
this.interactivechange()
- Keith

>HI. I have an optiongroup with two options (Inventory, Job). The controlsource is a numeric field. When I add a new record to my table I set the optiongroup.value as 1 or 2 (depending on what I want.). I put some code in my intractive and programmatic change events of the optiongroup. The code enables/disables certain fields based on the value of the optiongroup. This code doesn't consistently fire for some reason. If the previous record was set to 1 and I set the value during my insert to 2, the fields corresponding to 2 don't get enabled. If the previous record was set to 2, and I add a new record and set it to 1, it works. I can't figure out why? Any ideas?
>
>TIA,
>
>Sandi Cassidy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform