Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class merging ... Feature or Bug! 8-)
Message
De
29/10/2001 11:36:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
29/10/2001 08:29:12
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00574396
Message ID:
00574550
Vues:
27
>I Hacked the VCX files and i saw that the 'classloc' column of newclass1.vcx is changed on the record that indicate the mother class of 'base' class.
>
>Someone can say me if this problem is known by Microsoft ?? I have no found it on Knowledge Base.

This really is funny, as in the class browser you can't rename a class to the name of its parent class even if it's in a different classlib. Basically, the whole system was built on the assumption that the classes down the inheritance chain will have different names, and they better have different names else you may get what you just saw. Still, you can trick VFP into allowing same names by creating a subclass with a different name, then renaming the parent class to something, then renaming the subclass to the original name of the parent, then renaming the parent back to this original name.

If MS ever fixes this (which I doubt, a class definition has no idea whether it was ever subclassed and in how many classlibs - and what with framework classes which come updated with the same names, and your subclasses made off the previous version still work with the updated ones), Visual Promatrix will be in trouble - they supply a blank copy of all of their base classes with each app you create with it, and all the classes there have exactly the same names as their parent classes.
Therefore, a rule of thumb: give your subclasses meaningful names, different from parent names.

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