Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last Man (Control) Standing
Message
 
À
30/07/1997 12:36:45
Gino Miceli
Lan Professionals, Inc.
Bay Shore, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00042332
Message ID:
00042462
Vues:
36
>Gary Cox's solution about Bringing the controls to Front works well in my situation, but I'm sure a time will come where I need to do it programatically. So thanks to Valerie, Gary, and Matt!

Gino and everyne,

Ther is a potentially very nasty problem with dependence on teh istantiation order of the controls. If you or anyone else ever adds a control or makes any other changes to the form your depedency may collapse. By using either a container or the fomr itslef to thanlde the management of the conatined controls you are NOT depending on instantiation order and therefore there is no potential for breaking the functionality in future edits of the form.

The reason I call this a nasty problem is that there is no visible clues anywhere that the instantiation oreder is being depended on and therefore no clue to future revisors of the fomr that they must deal with that dependency. The presence of this dependency is a violation of encpasulation in that the control that isd dependent is in no control of that thing it is dependent upon. While using a container or the form itself to handle this presents no such dependency as it is a published spec of the language that all contained objects are created before the Init of teh container is executed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform