| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > RuleManager > Rule Class Methods >====== ResetGlobalRule (clear address in GlobalRule) ====== | [[rule class methods.htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ruleisbroken test rule and return result .htm|{{btn_next_n.gif|Next page}}]] | | || **ResetGlobalRule** {{blk2blue.jpg|blk2blue.jpg}} | **ResetGlobalRule** | Sets SELF.GlobalRule to zero. | The **ResetGlobalRule **method** **tests the GlobalRule reference property for NULL. If the reference is not NULL, a zero is posted to the referenced variable. **Example:** **Rule.RuleIsBroken PROCEDURE(Byte DisplayIndicator)** **RetVal  LONG** **EvaluateResults byte** ** CODE** **  SELF.SetGlobalRule** **  EvaluateResults = EVALUATE(SELF.Expression)** **  IF INLIST(ERRORCODE(),800,810,1011)** **   RetVal = ERRORCODE() ** **   STOP('Evaluate Syntax error')** **  ELSE** **   RetVal = CHOOSE(EvaluateResults = 0,1,0)** **   SELF.SetIsBroken(RetVal)** **   IF DisplayIndicator** **    SELF.SetIndicator(RetVal)** **   END** **  END** **  SELF.ResetGlobalRule** **  RETURN(RetVal)** **See Also:** [[setglobalrule post address to globalrule .htm|SetGlobalRule]], [[ruleisbroken test rule and return result .htm|RuleIsBroken]]