Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
?optiongroup
Message
De
09/08/2000 13:13:35
 
 
À
09/08/2000 13:01:45
Randy Hooper
Ranco Business Software
Tampa, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00402877
Message ID:
00402889
Vues:
10
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform