Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hack VCX to add custom properties
Message
De
24/05/2008 03:49:48
 
 
À
23/05/2008 20:44:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01319311
Message ID:
01319324
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform