Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty middle layer class - runs eldest method
Message
De
02/04/1999 17:42:49
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:
00204829
Vues:
18
>> 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.
>
>That's the way it's supposed to work. Do you mean it's not running the init of the grandparent class?

No, it runs the grand-grandparent's init, when the class and parentclass inits are empty. Accordingly it skips the code for some commandbuttons (which don't exist in the grand-grandparent class) etc. As soon as there's something in tha parent class code, it works. I remember there was something about the dodefault() bug in 5.0, but this seems to (not) work contrary to that. I'll leti it simmer for a while until someone comes up with a solution (or I dig down deep enough).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform