How to execute user code in ON ACTION blocks when an action is fired.
INPUT BY NAME ... ... ON ACTION print -- user code ...
MENU ... ... COMMAND "Print" "Print the current record" -- user code ...
ON ACTION blocks provide better abstraction than COMMAND blocks by using simple action identifiers and leaving the decoration in the form files or action defaults files. The ON ACTION block defines an action handler with a simple action name. The COMMAND block defines an action handler with an action name, but it also defines decoration attributes, such as the label and comment. Keyboard accelerators and help topic numbers can also be defined.
Action handlers are bound to action views by name.