MENU()

From Recital Documentation Wiki
Revision as of 12:46, 23 August 2018 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 FROM, MENU 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