Difference between revisions of "MENU()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Function to return selected menu number
 
Function to return selected menu number
Line 25: Line 23:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Menus]]
 
[[Category:Menus]]
 
[[Category:Menus Functions]]
 
[[Category:Menus Functions]]

Revision as of 17:07, 3 December 2009

Purpose

Function to return selected menu number


Syntax

MENU()


See Also

@...MENU, MENU AT, MENU BROWSE, MENU COMMAND, MENU FIELDS, MENU FILES, MENU FORMAT, MENU FRAME, MENU FROMMENU QUERY, MENU SCOPE, MENUITEM()


Description

The MENU() function returns the number of the menu item selected from a previously activated menu. This function is valid on any of the Recital 4GL menu commands and dBASE style menu commands. If no item was selected, MENU() returns -1. Menu items start at 0. This function is very useful when used in conjunction with Recital PULLDOWN menus. When used with the MENU BROWSE command, MENU() returns the record number of the selected record rather than its position in the menu. If COMPATIBLE is set ON, then the MENU() function will return the alphanumeric string for the name of the most recent menu that was activated. If there is no active menu, this function returns a null string. This is compatible with the Xbase style menus.


Example

menu browse customer, lastname
? menu()


Products

Recital