Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class merging ... Feature or Bug! 8-)
Message
De
31/10/2001 12:06:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
31/10/2001 04:10:16
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:
00575717
Vues:
30
>>Therefore, a rule of thumb: give your subclasses meaningful names, different from parent names.
>
>I made other research and i found the real problem:
>
>the real problem is the names of two subclassed class, the names are the same but the two classes are in different classlibrary.
>
>The scenario is the following :
>ClassLibrary CLASSES.VCX contain 'BASEFORM' Class based on VFP base Class FORM
>ClassLibrary BASE1.VCX contain 'BASE' Class based Class 'BASEFORM' of CLASSES.VCX
>ClassLibrary BASE2.VCX contain 'BASE' Class based Class 'BASEFORM' of CLASSES.VCX
>ClassLibrary B1.VCX contain 'SUBBASE1' Class based Class 'BASE' of BASE1.VCX
>ClassLibrary B2.VCX contain 'SUBBASE2' Class based Class 'BASE' of BASE2.VCX
>
>Issuing the following commands is possible to reproduce the behavior:
>
>MODI CLASS subbbase1 of b1 (close it) CLASSLIBRARY => base1.vcx
>MODI CLASS subbbase2 of b2 (close it) CLASSLIBRARY => base2.vcx
>MODI CLASS subbbase1 of b1 CLASSLIBRARY => base2.vcx <=== ERROR should be base1.vcx

So it seems to search the internal cache by classname only, not classname+classlib. Thing to watch out for.

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