General information
Category:
Coding, syntax & commands
Title:
OptionGroup.Value = 0?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only