| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > RuleManager > RulesCollection Class Methods >====== EnumerateBrokenRules (display a list of rules with status of each) ====== | [[destruct shut down rulescollection object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[item locate a particular rule .htm|{{btn_next_n.gif|Next page}}]] | | || **EnumerateBrokenRules(** //header//,//brokenonly// **)** {{blk2blue.jpg|blk2blue.jpg}} | **EnumerateBrokenRules** | Displays a list of the rules managed by this RulesCollection object. | | //header// | A string constant, variable, EQUATE, or expression that contains a header to be displayed in the title bar of the enumerated rules display. | | //broken// | A Boolean constant, variable, EQUATE, or expression that, if True, causes the EnumerateBrokenRules method to display only rules which are broken. | The **EnumerateBrokenRules **method provides a convenient way to display the set of rules (or broken rules) managed by this RulesCollection object. If the user selects a rule from this display, the field equate of the control associated with that rule is returned, allowing the appropriate field to be SELECTed, **Example:** **IF MESSAGE(Desc,'Error Information',ICON:ASTERISK,'Close |' & MoreString) = 2** **  SelectControl = SELF.EnumerateBrokenRules(SELF.GetDescription())** **  IF SelectControl** **    SELECT(SelectControl)** **  END** **END** **See Also:**   [[takeaccepted handle acceptance of error indicators .htm|TakeAccepted]]