MENU CLOSE

Closes the open menu in the current window.

Syntax

MENU CLOSE [object]

Parameters

object

Can be
name
The name of the menu to be closed.
(expr )
A character string, or an expression that evaluates to a character string, used at run time as the name of the menu. Using expr enables one MENU CLOSE command to specify different menus, at the risk of encountering an ambiguous name.
If name or expr is omitted, MENU CLOSE closes the current menu in the current window. When name or expr is specified, MENU CLOSE closes the open menu only if its name matches the specified name.

Comments

A MENU CLOSE command implicitly causes any form, display, or menu open in the window to be closed.

The MENU CLOSE command with a menu name is effective only if the menu in the current window bears the exact name specified in the command.

Closing a menu removes that menu from the window. The window remains without a menu until a MENU OPEN command is executed.

 

Related Topics