If you use the CHECK statement within an event block
but not within a loop, and the condition is not
fulfilled, the system exits the processing block
immediately.
can be any logical expression or the name of a
selection table. If you specify a selection table and the
contents of the corresponding table work are do not fulfill
the condition in the selection table, it is the same as a
false logical expression.
If you use the CHECK statement within an event block
but not within a loop, and the condition is not
fulfilled, the system exits the processing block
immediately.
If the CHECK statement occurs in a loop using DO, WHILE, or
LOOP, it is the loop that terminates, not the processing
block.
A subroutine normally ends at the ENDFORM statement.
However, you can terminate them earlier by using the EXIT
or CHECK statement.
In loop structures like
DO ... ENDDO
WHILE ... ENDWHILE
LOOP ... ENDLOOP
SELECT ... ENDSELECT
CHECK with a negative outcome terminates the current loop
pass and goes back to the beginning of the loop to start
the next pass, if there is one.
In structures like
FORM ... ENDFORM
FUNCTION ... ENDFUNCTION
MODULE ... ENDMODULE
AT