, , , , . - , include. , , debugalert.i . assert.i , , , , , ..
To set up a statement, you simply follow the format {assert.i & condition =}
/ * assert.i * / {debugalert.i}
& IF DEFINED (DEBUGALERT) <> 0 & THEN
IF NOT {AND CONDITION} THEN DO:
MESSAGE THIS-PROCEDURE:FILENAME "ERROR...{&CONDITION}"
VIEW-AS ALERT-BOX.
END.
& Endif
/ * debugalert.i in a test or development environment, to disable claims, delete that statement * /
& GLOBAL-DEFINE DEBUGALERT
/ * In your test code, you simply do the following: / / test statement * /
DEF VAR h_ct AS INT NO-UNDO INIT 10.
{assert.i & CONDITION = "h_ct = 8"}
source
share