User Tools

Site Tools


enumeratebrokenrules_display_a_list_of_rules_with_status_of_each_1.htm
Navigation:  »No topics above this level«====== EnumerateBrokenRules (display a list of rules with status of each) ====== Return to chapter overview

EnumerateBrokenRules( header,brokenonly )

blk2blue.jpg

EnumerateBrokenRules Displays a list of the rules monitored by RulesCollection objects which in turn are managed by this RulesManager 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) monitored by RulesCollection objects managed by this RulesManager 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(), |

                                            SELF.GetErrorImage())

 IF SelectControl

   SELECT(SelectControl)

 END

END

See Also:     TakeAccepted

enumeratebrokenrules_display_a_list_of_rules_with_status_of_each_1.htm.txt · Last modified: 2021/04/15 12:48 by 127.0.0.1