Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OptionGroup.Value = 0?
Message
De
05/12/1997 14:14:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
OptionGroup.Value = 0?
Divers
Thread ID:
00064088
Message ID:
00064088
Vues:
66
In my option group InteractiveChange() event, I check a certain condition. If it's true, I present a message box to the user. If the user click on "No", I put back the old value in the option group Value propriety.

Question 1:
If Value = 1 and the user click on the third option, everyting work fine (Value still 1 and the button is depressed)

If Value = 3 and the user click on the second option, Value get a zero value (where it should be 3)

The actual line of code:
THISFORM.OptionGroup.Value = THISFORM.OldValue (added form property)

In debug, THISFORM.OldValue = 3 but right after that line of code, THISFORM.OptionGroup.Value = 0. Where did that come from?

Question 2:
Is there a way of not executing the Click() event of an option depending on certain condition? Actually, I put a check at the top of the Click() event and RETURN, but I would like to avoid entering the Click() event at all instead of repeating the code in each option Click() event.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform