Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does my Valid() code operate differently to click()
Message
 
To
16/12/1999 05:39:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00304456
Message ID:
00304562
Views:
36
>This didn't work when place in the optiongroup.click, but it worked if I placed it in each of the optiongroup.optionx.click methods. Very strange, I would have thought clicking on an option within a group would have fired the click method of the group.
>
>Thanks.
>

David,

Nope, clicking the background of the optiongroup where there is no button fires the optiongroup's click. If you want that code centralized then move it to the optiongroup's InteractiveChange which fires whenever the value of the optiongroup changes. Clicking a button in the group changes the value, so it also fires the InteractiveChange.

Another alternative, if you want the code centralized, is to call teh optiongroup's click from each button's click like this;
* Option Button Click
This.Parent.Click()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform