Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CDE - Rule
Message
 
To
16/04/2003 03:29:03
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Miscellaneous
Thread ID:
00778147
Message ID:
00778297
Views:
17
Yo Sir.


>Remember that if you create a rule in a CDE and then decide you want to make it into a "superclass", you can always save it as a class in its own library and then simply drop an instance of it back to the originating CDE.

I thought of this when I was thinking about it, but this seems to be one more thing I don't know how to do ... I know how to save a .scx or an object in it as a class, but couldn't find the way to do it with an object already in a class ... would you be so kind ? How do I extract it from the CDE ?


>As to the new method, ask yourself to what part of your application is it specific? If it is a method to enhance rule classes generally, you could create an IvanRuleClass ...

liked this one, just because of the name.

>... add the method there and base all other rules on your IvanRuleClass, thereby adding the new method to each and every rule instance. If the method is domain specific and part of your application's business logic and perhaps, more importantly, specific to the cursors in a single CDE, then it is likely better added to the CDE in question or added to a utility class library that can be called from wherever it is required whether that be in a method or event of a rule class or CDE.

Got it. This one right now belongs to Rule in the CDE, so I'm gonna create it in this CDE. But understood the principles.

Back to the application.

Later.
Ivan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform