Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class merging ... Feature or Bug! 8-)
Message
De
31/10/2001 04:10:16
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italie
 
 
À
29/10/2001 11:36:55
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00574396
Message ID:
00575499
Vues:
23
>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
bye, Emanuele!
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform