ON SELECTION POPUP Command
Specifies a command that executes when you choose any menu item from a specified menu or from all menus.
ON SELECTION POPUP MenuName | ALL [Command]
Parameters
- MenuName
Specifies the menu to which the command is assigned. - ALL
If you include ALL instead of a menu name, Visual FoxPro executes the command when you choose a menu item from any menu. - Command
Specifies the command to execute when you choose a menu item.
Remarks
When you choose any menu item from a menu, Visual FoxPro executes the command you specify with ON SELECTION POPUP. When you create and activate the menu, place ON SELECTION POPUP between DEFINE POPUP and ACTIVATE POPUP.
Use ON SELECTION BAR to execute a command when you choose a specific menu item. ON SELECTION BAR takes precedence over ON SELECTION POPUP. Use ON BAR to activate a menu or menu bar when you choose a specific menu item.
Use ON SELECTION POPUP without a command to release a command assigned to a menu item with a previous ON SELECTION POPUP.