Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command Group Value
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00606848
Message ID:
00609155
Vues:
22
David,

Thank you for the lesson and the logic. As you may have guessed, I used FP DOS for many years. I’m like a kid in a candy store with all the choices. The code in question was on a converted FP DOS form. (And I use the term ‘converted’ very loosely.)

OK, so here’s what I’ve got: keep method code as close to the control as possible. The idea being that the control should be responsible for itself. If the need dictates that the method be called from multiple places, place it in the highest level container that serves all potential users, i.e. if the form has multiple ways to access the method, create a form-level method to do the work.

The CASE statement was dumb. There's no direct connection between it, the actions it triggers or any other control that needs the services of that code. It is plainly obvious to me now.

I’m trying to learn, so your response was exactly what I was looking for. How many stars do you want? ;-)

Rich
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform