Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the Base Class of a Class
Message
 
To
06/06/2001 10:57:07
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00515794
Message ID:
00515856
Views:
15
This message has been marked as the solution to the initial question of the thread.
>I understand how to change the Class and Class Location of records in the SCX for objects in a form, but how do I go about changing the base class for classes contained in a class library? The app I'm looking at has a number of classes based on the Textbox base class and I would like to base them all off of a class in another library. Most of what I've done in the past is simply creating classes, dragging/dropping onto forms and modifying the code between them as required. Not sure about what to modify in the VCX in order to do what I'm trying to do... Thanks!
>
>Regards, Renoir

As Larry already pointed out, the VCX and SCX structures are identical. The difference is in a first record UNIQUEID field. In SCX its value is "Screen", in VCX it is "Class". Due to this fact, it is possible for example, to hack the VCX with a form class and "convert" it to SCX-based form (and rename the files accordingly). There is also a VCXEditor utility in the files section which allows you to do a lot of stuff with VCX.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform