Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
?optiongroup
Message
From
09/08/2000 13:13:35
 
 
To
09/08/2000 13:01:45
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00402877
Message ID:
00402889
Views:
9
A better idea would be to have this common code located at a higher level, like the parent object of these controls or the form. Then the commandbutton would call that instead. Also, instead of using the optionbutton.click() use the optionGroup.InteractiveChange(). e.g.,
** form.CommonMethod()
** yada, yada, yada
this.optionGroup.Value = 2

** commandbutton.click()
* blah, blah, blah
thisform.CommonMethod()

** optionGroup.InteractiveChange()
If this.Value = 2
  thisform.CommonMethod()
EndIf
If you really like having the code in the controls, use the optionGroup.ProgrammaticChange() and InteractiveChange() and set the optiongroup.value from the commandbutton, e.g.,
** commandbutton.click()
* blah, blah, blah
thisform.optionGroup.Value = 2

** optionGroup.ProgrammaticChange()
this.InteractiveChange()

** optionGroup.InteractiveChange()
If this.Value = 2
  ** yada, yada, yada
EndIf
>I have a optiongroup with 6 optionbuttons. From a command button I am calling a click event on option 2(thisform.optiongroup1.option2.click()) that works fine but my radio button does not move to optionbutton2. I thought this could be refresh issue but that did not help. So how can I move my radio button.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform