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

Click here to load this message in the networking platform