Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use CloneObject
Message
From
21/03/2011 11:08:13
Mike Yearwood
Toronto, Ontario, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01503985
Message ID:
01504357
Views:
69
>Mike, do you want to have a program get reference to objects at design time without you manually firing off a builder? You can call builder.app to do this. I modified some hooks at the start of builder.app, and I designed and wrote BuilderB. There may be a way to programatically get what you need. If you describe more detail of what you want to do (the scenario), I may be able to assist.

Hi Ken

I'm using MaxFrame, which is like a bunch of parts. When I build an application, I subclass VMP (XX) and make some extensions (XY used the parts to make an engine) and then an application specific set of classes (UE) and then I make the forms etc.

Now when I go to start a new application, everything based on UE are not classes per se, but they have properties and methods that are likely to be set in the new application. I'd like to have the UE classes copied and renamed to NM and compound classes migrated from UE to NM - which Drew Speedie's (RIP) hacking tool can do. Then the forms (SCXs) would have to be migrated too.

That would leave me the job of only changing existing properties instead of having to wade through the property sheets of all the subclasses to find the relatively few properties that must be set this far down the hierarchy.

Explaining this and thinking about it over the last week or so, I want all components subclassed from XY (UE) and all components based on UE classes to be copied and mass hacked to NM.

Thanks



>
>>>>I believe I have discovered a need that goes beyond wizards, builders and generators or even BuilderB. I have subclassed many controls and built those controls into an application. Now I want to start a new application. It's not enough to go back up one level in the class hierarchy and subclass those to a new folder. I'd then have to compare settings from similar subclasses in the previous project.
>>>>
>>>>I basically want to clone the entire project, renaming the low level classes as they are copied with their properties and then edit the new project. That way I'd instantly have the properties to set right in front of me.
>>>>
>>>>How does one get an object reference to an object at design time to use the CloneObject method?
>>>
>>>Mike - I'm addressing your need rather than your specific question. Why can't you just copy the class libraries into a new folder? As long as you keep all relative references the same, you should be in business.
>>>
>>>Tamar
>>
>>Hi Tamar
>>
>>xx are not cloned or moved.
>>xy are not cloned or moved.
>>ue are cloned, but not moved resulting in new nm classes.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform