Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ON SELECTION BAR Command

Visual Studio .NET 2003

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

DEFINE BAR | DEFINE POPUP | ON BAR | ON SELECTION POPUP

Show:
© 2015 Microsoft