Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where is an option group's value updated?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Where is an option group's value updated?
Miscellaneous
Thread ID:
00885057
Message ID:
00885057
Views:
61
Does anyone know how an option group detects which option button was selected and how it updates it's Value accordingly?

I want a form to return Form.OptionGroup.Value when a user selects a button by pressing enter. If I trap the enter in the button's keypress event, the OptionGroup's value has not yet been updated. However, if I try trapping via the InteractiveChange event of the OptionGroup, I miss out when the user presses enter on the first item in the list (because it is selected by default so no change took place).

I could set the initial value of the first button to 0 instead of 1 but I'd prefer to find a way around that if I could.

Any ideas?
Next
Reply
Map
View

Click here to load this message in the networking platform