MENU OPEN

MENU OPEN

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

MENU OPEN

Opens a menu in the current window.

Syntax

MENU OPEN object [NOCLEAR]

Parameters

object

Object can be
name
The name of the menu to be opened.
(expr )
A character string, or an expression that evaluates to a character string, to be used at run time as the name of the menu. Using expr enables one MENU OPEN command to specify different menus, at the risk of encountering an ambiguous name. MENU OPEN (expr) cannot be used to open menus defined in a foreign directory.

NOCLEAR

Specifies that the values currently assigned to the menu items are to be retained. (If NOCLEAR is not specified, each field is set to its default value when the menu is opened.)

Comments

Each open window that is not clipped can have a menu. The menu remains open as the current menu in its window until a MENU OPEN, MENU CLOSE, or WINDOW CLOSE command is executed for the window.

MENU OPEN does not display the menu or request input from the user; it initializes the menu for use. The menu is displayed using the MENU DISPLAY command and input is requested using the MENU INPUT or FORM INPUT command (if a form is open in the window).

Pre-defined menu attributes can be changed dynamically using the MENU SET (Attributes) command.

 

See Also

ThisMenu

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish