You are here: Development Standards > Routines > General Routines > GENUSR.PUB

# GENUSR.PUB

GENUSR.PUB is a public program for processing the F4 User Command menu. This program is intended to be used only by RMMENU.

`0050 ENTER FILE[ALL],MENUITEM`

Variable | Description
FILE[ALL] | Standard file array
MENUITEM | In GUI mode, the control ID of the menu selected

Exit Points | Explanation
EXIT | GENUSR.PUB never returns an error.

GENUSR.PUB displays a character menu and processes the F4USER menu in OSMN. This file is maintained by specifying OS for the application code in the Menus function of Resource Manager. After a menu selection is performed, control is returned to RMMENU, which in turn executes the selected program.

In GUI mode, GENUSR.PUB will only process the selection, because the menu is always built into the current form.