Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving Classes Between Libraries
Message
 
 
To
06/02/2002 21:21:12
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00616369
Message ID:
00616534
Views:
21
>FWIW, I've since discovered that when the moved class gets instantiated, the object does refer to the new library -- even though the class definition still points to the old library. So, everything works ok, just don't understand what's going on here.
>
>...sigh

Pete,
The ClassLibrary is a little misleading (IMO). It doesn't refer to the library where the current class resides. It refers to the library where the ParentClass resides. If the current class is a subclass of one of VFP's base classes, then the current library is displayed. WHn you moved the classes, did the location of the ParentClass change?

Also, when moving classes, open all libraries and forms that have subclasses/instances of the ones you are moving using the "View Additional File" of the Object Browser. Ken Levy posted that the OB will correct all the ClassLibrary references when you move it. If the libraries aren't open, you may have to correct things yourself.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform