Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Before Brute Force Switching ParentClass list new props-
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00999657
Message ID:
00999861
Views:
64
Hi David

>This basically goes against O-O theory. Rather than having two different classes that define the same properties/methods, You should promote the common items up to a parent class that the two classes are derived from. You your case it sounds like you may need to create a new class and insert it into your inheritance tree and then redefine your two classes from this new class.

Actually I was trying to switch autocomplete cbo's. I wanted to discontinue using one kind of cbo (already used in apps under the name acboautocomplete subclassed from the original autocomplete cbo). And put in a new autocomplete cbo so the subclass remains the same, acboautocomplete.

So there was no way common stuff was going up to the parent class.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform