ON ACTION block

You can use ON ACTION blocks to execute a sequence of instructions when the user raises a specific action. This is the preferred solution compared to ON KEY blocks, because ON ACTION blocks use abstract names to control user interaction.

Important:

The PROMPT instruction is automatically finished after ON IDLE, ON ACTION, or ON KEY block execution.