Products Downloads


French version


 


      

VADELIA

      

WADELIA



(I) (C/S)


(I) (C/S)



Section for use

VERIFICATION and procedure


Syntax

WARNING


Description

This instruction is used to send an error message without interrupting processing.

Processing is not interrupted neither during nor at the end of the verification procedure.


The value of the *WARNING reserved word will be set to 1 to indicate that one or more WARNINGS have been detected in the VERIFICATION block.


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


See also the SEND_MSG (Visual Adelia context) instruction.


Example

IF   Z_AMOUNT = 0

PREPARE_MSG 0011 Z_AMOUNT

WARNING

END

*

READ ITEMS

IF   ITEMS DOES_NOT_EXIST

PREPARE_MSG 0013 Z_ITEM_ID

INIT_MSG Z_ITEM_ID

WARNING

END


↑ Top of page

  • Aucune étiquette