Products Downloads


French version


 


      

VADELIA

      

WADELIA



(I) (C/S)


(I) (C/S)



Section for use

VERIFICATION and procedure


Syntax

ERROR


Description

This instruction is used to send a message and interrupt processing during the verification procedure (thus returning control to the user).


If the corresponding PREPARE_MSG instruction contains the *BOX parameter, 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, the message will be 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.


Note: ERROR and ANOMALY do not have the same effect:

    • ERROR causes the verification procedure to stop immediately, whereas
    • ANOMALY only interrupts processing at the end of the verification procedure.


Example

PREPARE_MSG MSG0011 W_PRICE

IF W_PRICE = 0

ERROR

END

*

PREPARE_MSG MSG0013 W_SETTLMT_ID *BOX

CHAIN SETTLEMENTS

IF   SETTLEMENTS DOES_NOT_EXIST

INIT_MSG W_SETTLMT_ID

ERROR

END


↑ Top of page

  • Aucune étiquette