MENU()

From Recital Documentation Wiki
Revision as of 17:07, 3 December 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search

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