Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of Initialization
Message
 
À
09/06/1999 17:51:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227508
Message ID:
00228309
Vues:
29
>The inter-dependent things may better be solved in a custom method of the form, which gets called from whenever necessary - form's activate, or control's refresh etc, depending on some condition (like - if your third combo's displayvalue is impty or something like that). This way you have several checkpoints which take care of your combos, and call the check'n'rebuild code, which checks if refresh is necessary.
>
>Though this may sound like an overkill, I've found that such distinct methods serve me well, because soon I discover they should be called from some button's .click, some other textbox's refresh, from the rightclick menu and from a toolbar button. This gives me a little abstraction - the action is in the method, and triggering the action is attached to interface elements.

You are right on target, Dragan. That's the way I operate, too, using an independent custom method to do this sort of job...as you say, you may soon find it re-usable during runtime, and all the code is in one place, which is a big plus, also, outweighing object independence in this situation...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform