CheckRule (check a particular rule)

Top  Previous  Next

 

CheckRule( rule,display)

CheckRule

Checks a particular rule and optionally sets the error indicator for its associated control.

rule

A string constant, variable, EQUATE, or expression that contains the name of this rule. If rule names are not unique within the collection managed by this RuleManager object, results may be unpredictable.

display

A Boolean constant, variable, EQUATE, or expression that, if True, will cause the error indicator to be set for the control associated with this rule.

Return Data Type:     BYTE

Example:

   Customer.CheckRule(ZipOK,True) ! Validate zip code and set indicator if invalid