AddRulesCollection (add a rule to this collection)

Top  Previous  Next

 

AddRulesCollection( RulesCollection )

AddRulesCollection

Adds a RulesCollection instance to the collection being managed by this RulesManager object

RulesCollection

The label of a RulesCollection object.

The AddRulesCollection method adds the specified RulesCollection object to the RuleManager and adds it to the Rules queue.

Example:

BusinessRulesManager.AddRulesCollection(Customer)

BusinessRulesManager.SetEnumerateIcons('~BRules.ico','~BRuleOk.ico', |

     '~BRuleNo.ico')

BusinessRulesManager.AddControl(?Ok,RuleAction:Disable)

BusinessRulesManager.SetGlobalRuleReferences(GlobalRule)