User Tools

Site Tools


ERROR CHECK

Guide Section: Processing Events and Performing Actions | EASAP Tree: EVENT PROCESSING branchCHECK VALUES


ERROR CHECK is a Child of CHECK VALUES.

ERROR CHECK defines custom error checks that go beyond the normal error checks, for example bounds checking, that are performed automatically by an EASAP. Some use cases for ERROR CHECK are as follows:

  • To compare the values of multiple objects
  • To check the value of a TEXTBOX for accuracy
  • Overide Upper Bound: or Lower Bound: checking on a REALBOX or INTEGERBOX to either:
    • Explain the need for the bound
    • Show a warning instead of showing an error that must be fixed.

ERROR CHECK has two methods for defining the check that it will perform:

  1. Define an error condition with a logical expression in Show if:
    • → When the expression evaluates to TRUE an error message will be displayed.
    • This is most often used for the matter of mathematical equality, such as:
      • equal to → ==
      • not equal to → !=
      • less than → <
      • greater than → > …etc…
  2. Define a Regular Expression in Regular Expression: to pattern match the object specified in Object:
    • Set an error or no-error condition, or leave the default in Match:
    • This is most often used to validate text, for example within one of the following:
ERROR CHECK
Essential Parameters:
Title:Title of error message
Error Message:Text of error message displayed when check finds an error
Type:Select type of error check (Error_Message, Information_Message, Warning_Message)
Optional Parameters:
Show if:Logical expression, if TRUE then error message displayed, if FALSE then error message NOT displayed
Regular Expression:Regular Expression to be matched against value of Object:
Object:Select object to check with Regular Expression:
Match:Select whether a match or a non-match in Regular Expression: should cause error (default→TRUE, FALSE)
Delimiter:Character to delimit any object references in Title: and Error Message: (default→%)

Page Tools