Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the class of existing objects
Message
 
To
23/01/1999 12:04:28
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00179378
Message ID:
00179414
Views:
33
>>>I have a form that was created using FoxPro's base classes. I have since created my own library of classes and would like to change the class and parent class of the EditBox's, Command buttond etc in my existing form.
>>>
>>>Would replacing the class and parent class fields in the scx file work? Is there another way?
>>>
>>>Also, should I have based my set of classes on the standard FoxPro classes or the ones in the "My base classes" section of the componenet gallery in VFP 6?
>>
>>Instead of hacking around with every thing, use the tool provided to do this... The Class Browser... a sort of misnomer since you can open an .SCX and a .PJX in the class browser to. Once you open the .SCX in the brower, Right Click on the form, choose Redefine, and choose the class you want to use.
>>
>>BOb
>
>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?
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform