Aracılığıyla paylaş


ON SELECTION BAR Command

Specifies a command that executes when you choose a specific menu item.

ON SELECTION BAR nMenuItemNumber OF MenuName   [Command]

Parameters

  • nMenuItemNumber OF MenuName [Command]
    Specifies the menu item's bar number, the menu name, and the command to execute for the specified menu item.

Remarks

Typically, ON SELECTION BAR uses DO to execute a procedure or program. When you create and activate a menu, place ON SELECTION BAR between DEFINE POPUP and ACTIVATE POPUP.

You can also use ON SELECTION BAR with a Visual FoxPro system menu.

Use ON SELECTION POPUP to execute a command when you choose any menu item on a menu. Use ON BAR to activate a menu or menu bar when you choose a specific menu item.

Use ON SELECTION BAR nMenuItemNumber OF MenuName without a command to release a command assigned to a menu item.

See Also

Reference

DEFINE BAR Command

DEFINE POPUP Command

ON BAR Command

ON SELECTION POPUP Command

Other Resources

Commands (Visual FoxPro)