Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding methods
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00167364
Message ID:
00167791
Vues:
18
Marcel,

>I my template many methods have same code ( ERROR Handling etc .. )
>
>What is your alternative to address this code duplication ?

For my design where there is duplicated code, Error() for example all of my first level baseclasses call a UDF: ObjError( this, nError, cMethod, nLine ) so the duplicated code is kept at an absolute minimum. I can't say that I have much other duplicated code that doesn't wind up being put into a higher level location, either higher up the inheritance tree or higher up the containership hierarchy.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform