Close a FORM

You can close a FORM using the buttons NEXT and CANCEL. Also, you can specify actions that should be taken when the FORM is closed using the NEXT button or when the FORM is closed using the CANCEL button.

When the user has completed the Form and presses Enter, Next, or a self-defined button, the answers are stored in corresponding ANSWER variables or ARRAY elements.

If ON ENTER is specified, the actions between DO and OD are executed after the user clicks the NEXT button.

If ON EXIT is specified, the actions between DO and OD are executed after the user clicks the CANCEL button.

Also, KCM continues executing the script code that follows the FORM statement.

ON ENTER
DO
 Part of the Master Template that will be executed when the FORM is closed using the OK button
OD