Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RuleOrderEntry in sample
Message
From
01/04/2002 13:14:13
 
 
To
01/04/2002 11:54:56
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00639499
Message ID:
00639562
Views:
17
This message has been marked as the solution to the initial question of the thread.
>How is the link made so that those rules will get into action?

Well, the rule is identified to the cursor(s) it should "cover" by the value in the cWorkarea property - "*" for all cursors or a comma delimited list of cursor names.

>The thing is that I'd like to do the same for my cursors. To be able to define
>only one place (RuleOrderEntry) that will be used for all the cursors instead
>of having business rules for every cursors.

Well you could use a single rule class for all your rules and apply it to any cursor but this would be somewhat counter productive. You would end up with a potentially massive rule class being added to a CDE that may just have a single cursor. 99% of the rules may not apply to cursors in that particular CDE.

Maybe the best thing to do is to create a smallish number of rule classes that apply to logically related cursors. However, I personally don't find it a hassle creating a single rule class for a new CDE and using the one class to cover all of the cursors in that CDE. I know that the main Codemine idea is creating re-useable rule classes so that you can create one rule, and use it anywhere. Up to now though, I haven't come across a situation where I am using the same data sources in multiple CDE's so, I haven't had a good chance to reuse my rule classes.

HTH

-=Gary
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform