Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OptionGroup.Value = 0?
Message
From
05/12/1997 14:14:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
OptionGroup.Value = 0?
Miscellaneous
Thread ID:
00064088
Message ID:
00064088
Views:
71
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.
Next
Reply
Map
View

Click here to load this message in the networking platform