Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding methods
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00167364
Message ID:
00167791
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform