Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hacking a form
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00330241
Message ID:
00330548
Views:
11
Glenn,

Other posts have good advice on rewiring classes. You can also use VFP's Class Browser to change inheritance one-at-a-time, but without having to write code or do a BrowseHack. Select the class, right-click, choose Redefine, then select the class from YOUR vcx. This approach works fine when it's not worth the time to write a routine for 1 or 2 changes.

I wouldn't try this without backing up first, but you can open an entire PJX in Class Browser and when you redefine (change the parent) of a class, it will resolve other references in the project. But pleeeze back it all up beforehand! It only works on VCX's currently open in CB; any others will be left in the cold with no known parent! THEN you will definitely learn the brute force approach.



>I recently accepted a contract with a company whose objects on their VFP forms are not classed out. I need a routine to hack into the form (opend it up as a table) and point every object to the base class (one of the foundation classes that come with VFP6).
> Thankyou;
> Glenn Tener
"Problems cannot be solved at the same level of awareness that created them." - Albert Einstein

Bruce Allen
NTX Data
Previous
Reply
Map
View

Click here to load this message in the networking platform