GMSG |
DEVELOPER |
Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > GMSG
|
|
Purpose |
GMSG displays a user-defined error or processing message. |
Syntax |
GMSG (operand1 {operand2,} {operand3}…) |
Operation |
operand1 is a literal value. |
Remarks |
Messages are defined in the PROIV System Message file, MSGF, using the Global Messages utility. |
On Read Error Logic |
In logic associated with the event process point On Read Error, a global message overrides the system error message. When developing an application, GMSG 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 global message is treated as a warning message. Executing a GMSG command here does not affect processing control. |
Custom Validation Logic |
In logic associated with the event process point Custom Validation, a global message is treated as an error message. Issuing a message in Custom Validation logic affects processing control. If GMSG 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 global message is treated as an error message. Issuing a message in Standard Validation logic affects processing control. If GMSG 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: 520064