Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty middle layer class - runs eldest method
Message
 
À
02/04/1999 15:36:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00204785
Message ID:
00204928
Vues:
15
>I have a rather weird layout - three layers of classes, and in the top layer there's a base form class, and a class derived from that one, with many of the methods of its own. Then there's a middle layer which is intended for company-level modifications, and it inherits from the top layer, but is currently empty, and then there's a local layer which inherits from the middle layer and it's intended to keep app-specific variations, if any. Needless to say that in the early stages the mid- and local layer are mostly empty (no code, most of PEM is at default).
>
>I instantiate a form off the local layer, and guess what - it runs the .init of the eldest class in the hieararchy. I'd have to stuff lots of dodefault()s upstream to make it behave.
>
>Using VFP5.0a - any hints to any potential bugs which may cause this, and workarounds, if any, are welcome.
>
>TIA

Hi Dragan,

I may be wrong, but this sounds very much like something Drew Speedie wrote about in FoxPro Advisor several months back. Right now, I don't have access to my back issues, but you can probably find the issue at the Advisor site. The article was call something like "The Dangers of Composite Classes".
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform