Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.