Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any way around this issue?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00793727
Message ID:
00794641
Vues:
14
>Bill,
>
>Generally I feel it's a good idea to have the Click event call a method
>on the form.
>
>Number one, other PEM's on the form can use the code rather simply.
>
>Two, if you change the UI from a CommandButton to some other control, you
>only have one line of code to move: "ThisForm.SomeFunc()"

But how do you handle it if you then decide you want the same function on a 2nd form? You would have to duplicate the method code in the 2nd form and update 2 forms when you need to.
I agree that the Click() should call a different method. I just don't like creating a separate class so I can create the method, just for a single use.
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform