Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing parent class
Message
From
11/10/1998 22:25:05
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00145774
Message ID:
00145801
Views:
37
Michel,
I was reading up on using the foundation classes and came across the passage:

Instead of changing _base.vcx, however, you should redefine the classes in _base.vcx to inherit their behavior from your own custom base classes ... You can use the Class Browser to redefine the parent class for a particular class.

And as David pointed out, it actually works! Trying to incorporate the foundation classes into an existing app would be a nightmare without being able to redefine.


Bob

>Are you sure you've read that correctly ? You can certainly move a
class from one class library to another quite easily, but changing
the parent class I do not think so. Imagine : changing a command button
class to have "FORM" as its parent class instead .... What nightmare !!!
>
>Michel.
>===================== Original message follows ====================
>>The VFP Docs indicate there is a simple way to change the parent class of a component from the class browser. How can I accomplish this without editing the VCX?
>>
>>Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform