Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tool to create a superclass?
Message
From
24/12/2020 10:36:56
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
14/12/2020 12:57:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01677529
Message ID:
01677655
Views:
90
>>>>>I have two classes that are subclasses of a common parent, but have realized that I really need to add another level in the hierarchy to be the parent of these two, but not of the other children of the common parent. That is, I want to insert a class into the class hierarchy.
>>>>>
>>>>>Wondering if someone has a tool that can take the original two classes and create the common parent with all the shared PEMs that are new in these classes. (That is, if both classes have a new property called Fred, I want to put a property called Fred in the new parent.)
>>>>>
>>>>>Yes, I know I could write my own (and started scribbling in this direction today), but if someone's already done it, then I don't want to reinvent the wheel.
>>>>>
>>>>>Tamar
>>>>
>>>>Isn't that what Thor's tool "Copy for comparing..." and "Compare with copied..." are for? I remember reading your white paper recently.
>>>>
>>>>http://www.tomorrowssolutionsllc.com/Articles/Try%20Thors%20Terrific%20Tools%20Part%202.pdf
>>>
>>>They actually give the opposite of what I'm looking for, a list of differences. I want the matching PEMs and only those added at that level. Even better, I want a tool that would take the two classes as input and create the new parent class with all the common PEMs added there.
>>>
>>>Tamar
>>
>>Sounds like a nice job. How long can you wait? The classes are vcx based?
>
>If no one has a tool to recommend, I'll just get the work done, using the code I've already written to get the list.
>
>Tamar

Drew had a hacking tool in MaxFrame where, after you created the superclass in the normal manner, you could hack the intended subclass(es) to be children of this new parent.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform