Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highly Annoying Bug/Quirk of Mere Mortals?
Message
From
21/10/2002 14:32:19
 
 
To
21/10/2002 11:08:58
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00713531
Message ID:
00713603
Views:
16
Okay, I did some research. At least in v6 of MM, it appears the entire DE class is erased and re-created. That would explain why custom methods, etc. are destroyed.

But, I also have a solution.

I am going to create a "dedecorator" base class and subclass it accordingly. I will drop the dedecorator class on the dataenvironment class. The dedecorator class will provide the additional functionality necessary to keep the persistance layer in tact. When the de class gets erased and re-created, I'll just have to re-drop the dedecorator class back on.

For more information, see "Design Patterns: Elements of Reusable Object-Oriented Software" (Gamma, Helm, Johnson & Vlissides, 1995), p.175. It describes the Decorator pattern.

Paul
Previous
Reply
Map
View

Click here to load this message in the networking platform