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. |
General Check Logic |
In logic associated with the event process point General Check, a global message is treated as an error message. Issuing a message in General Check logic affects processing control. If GMSG is executed in General Check logic, the message appears and PROIV re-prompts for input of the field. |
Special Check Logic |
A Global Logic may be specified as a Special Check. In this logic a global message is treated as an error message. Issuing a message in Special Check logic affects processing control. If GMSG is executed in Special Check 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