Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last Man (Control) Standing
Message
 
To
30/07/1997 12:36:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00042332
Message ID:
00042462
Views:
34
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform