Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the class of existing objects
Message
From
23/01/1999 19:48:35
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00179378
Message ID:
00179486
Views:
38
>>This works well if you only have to redefine one object (the form). But if you need to redefine every object on the form, you'll want to hack the scx.
>
>Yeah, with commands in Command Window like "REPLACE ClassLoc WITH xxx FOR ClassLoc = yyy" or with a program you write to do it.
>
>But haven't I heard of some third-party tool, maybe from Stonefield or F1, called classmorph or massmorph or something like that, which was designed to make mass changes from one class or classlib to another, maybe visually in Form Designer change all selected objects to another class?

I think the only tools you will find for doing this will be the like the one that comes with VMP and the ytpe that are found here in the files section. Hihglightling all controls in the form designer and changing their class won't work for the same reason that just changing the class in the property sheet won't work: you can't change the class of an object after it is instanciated, and when a form is open in the designer, it is instanciated.

It would be fairly easy to write a tool that wlil open every form or clas in a project and change the class of a specific occurence of object. I am sure somebody has already done it, and this may be the tool you are referring to.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform