Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hack VCX to add custom properties
Message
From
24/05/2008 03:49:48
 
 
To
23/05/2008 20:44:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01319311
Message ID:
01319324
Views:
12
>Is there some simple way to hack a VCX to add custom properties to a number of the classes defined there?

Depends on what you consider simple<g>. Seriously, it is not too difficult - I gave it a stint doing a large port in 1998, adding more of rose model data into code, but the code is at that site. You have to figure outhow to mark new properties/methods in the specific memo field (in the same memo, different by a char AFAIR and wrap your head around naming conventions if overwriting in aggregated classes.

Today there are at least a couple of "base class enhancers" floating around to add properties/methods form a table to your set of base classes to reduce redundancy at the editing level. Recommended for speed critical things. Don't go overboard: repeatedly changing the method code (even just calling a piece of code after editing the "common repository") adds something you can forget. At least for methods following a "static" pattern delegate to a common object on goApp or _Screen.

HTH

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform