Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class merging ... Feature or Bug! 8-)
Message
From
31/10/2001 04:10:16
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italy
 
 
To
29/10/2001 11:36:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00574396
Message ID:
00575499
Views:
24
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform