Easy to Create, Easy to Change - Easy to use!

Command::

call menu



Parameters


Returns/Result


Examples


Reference

call menu

Type

Control Command

Purpose

The call menu command opens the specified menu document.

Syntax

call menu "MENU NAME" .

Usage

The call menu command is used to display a user-defined menu at any point during a Control Procedure.

When the menu is displayed, you can make selections from it and perform the associated DataEase operations normally.

When you close the menu by double-clicking its Control menu box (or by clicking on a custom button designed for this purpose), the Control Procedure resumes with the action following the call menu command.

User-defined menus are called by the name specified when the menu document was created. In a call menu command, the menu name must be enclosed in quotation marks unless it is specified as a variable.

Example

 record entry "MEMBERS" .

 run procedure "PRINT INVOICES" .

 call menu "MAIN MENU" .

 backup db .

 

This script tells DataEase: (1) Display the MEMBERS form so the user can enter new records, when the user closes the MEMBERS form, (2) run the PRINT INVOICES Procedure, when the procedure finishes processing, (3) display the MAIN MENU document, and when the operator closes the menu, (4) backup the application.

See Also


On the forum about call menu

On the blog about call menu