ON SELECTION MENU Command

Specifies a command that executes when you choose any menu title on a menu bar.

ON SELECTION MENU MenuBarName | ALL [Command]

Parameters

MenuBarName

Specifies the name of the menu bar to which you assign a command. The command executes when you choose any menu title from the menu bar. You can specify the name of a user-defined menu bar created with DEFINE MENU or the Microsoft Visual FoxPro system menu bar _MSYSMENU.

ALL

Executes a command when you choose any menu title from any menu bar.

Command

Specifies the command to execute when you choose a menu title. Use ONSELECTION MENU without a command to release a command assigned to a menu bar.

Expand imageRemarks

Expand imageExample

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic