MSG |
DEVELOPER |
Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > MSG
|
|
Purpose |
MSG (Error Message) displays user-defined messages when an error occurs in processing. |
Syntax |
MSG (operand1 {operand2,} {operand3}…) |
Operation |
operand1 is any valid numeric constant, variable, expression, or operation whose value represents an error message number from 1 to 255. |
Remarks |
Numeric tags identify user-defined error messages, with values from 1 to 255. An error message number is local to the function in which it is defined (i.e. error message 1 in function CUST and error message 1 in function INV are separate entities). |
On Read Error Logic |
In logic associated with the event process point On Read Error, a user-defined message overrides the system error message. When developing an application, MSG should be used in On Read Error logic to display customized error messages that are meaningful to the operator. |
Dynamic Object Logic |
In logic associated with a Dynamic Object, a user-defined message is treated as a warning message. Executing an MSG command here does not affect processing control. |
Custom Validation Logic |
In logic associated with the event process point Custom Validation, a user-defined message is treated as an error message. Issuing a message in Custom Validation logic affects processing control. If MSG is executed in Custom Validation logic, the message appears and PROIV re-prompts for input of the field. |
Standard Validation Logic |
A Global Logic may be specified as a Standard Validation. In this logic a user-defined message is treated as an error message. Issuing a message in Standard Validation logic affects processing control. If MSG is executed in Standard Validation logic, the message appears and PROIV re-prompts for input of the field. |
Example 1 |
IF #INPUT > 500 THEN |
Example 2 |
IF #INPUT > 500 THEN |
Topic ID: 520093