Usage / INPUT ARRAY control instructions |
Deletion can be canceled, by using the CANCEL DELETE instruction in theBEFORE DELETE block. Using this instruction in a different place will generate a compilation error.
When the CANCEL DELETE instruction is executed, the current BEFOREDELETE block is terminated without any other trigger execution (no BEFOREROW or BEFORE FIELD is executed), and the program execution continues in the user event loop.
BEFORE DELETE IF user_can_delete() == FALSE THEN ERROR "You are not allowed to delete rows." CANCEL DELETE END IF
The instructions that appear after CANCEL DELETE will be skipped.
CALL DIALOG.setActionActive("delete", FALSE)