|
VADELIA |
|
WADELIA |
EADELIA |
(I) (C/S) |
(I) (C/S) |
(B) (C/S) |
Section for use
VERIFICATION and procedure
Syntax
ANOMALY
Description
This instruction is used to send an error message without crashing other controls. Verification processing continues uninterrupted and further messages can be sent after the first one. The value of the reserved word *ANOMALY is set to 1.
Processing will be interrupted at the end of the verification procedure if there have been one or more anomalies.
If the corresponding PREPARE_MSG instruction contains the *BOX parameter, the messages appear one by one, prompting the user to click on the "OK" button to enable processing to continue.
If the corresponding PREPARE_MSG instruction does not contain the *BOX parameter, all the messages are shown in a box at the end of the verification procedure.
The instruction is authorised in a procedure only if it is directly called from a VERIFICATION paragraph. In this case, the graphical object specified in the PREPARE_MSG instruction must be described by the name of its window or page and must belong to the window (or page) corresponding to the VERIFICATION paragraph which called the procedure.
Important note: ERROR and ANOMALY do not have the same effect:
- ERROR causes the verification procedure to stop immediately.
- ANOMALY only interrupts processing at the end of the verification procedure.
Example
IF Z_AMOUNT = 0
PREPARE_MSG 0011 Z_AMOUNT *BOX
ANOMALY
END
*
CHAIN CUSTOMER
IF CUSTOMERS DOES_NOT_EXIST
PREPARE_MSG 0013 Z_CUSTOMER_CODE
INIT_MSG Z_CUSTOMER_CODE
ANOMALY
END
↑ Top of page Copyrights Ι ©Hardis Group 2025 - Any partial or total reproduction of the content, not expressly authorized by Hardis Group, is strictly prohibited.