Difference between revisions of "MENU()"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) (→See Also) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to return selected menu number | Function to return selected menu number | ||
Line 12: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[@...MENU]], [[MENU AT]], [[MENU BROWSE]], [[MENU COMMAND]], [[MENU FIELDS]], [[MENU FILES]], [[MENU FORMAT]], [[MENU FRAME]], [[MENU FROM]][[MENU QUERY]], [[MENU SCOPE]], [[MENUITEM()]] | + | [[@...MENU]], [[MENU AT]], [[MENU BROWSE]], [[MENU COMMAND]], [[MENU FIELDS]], [[MENU FILES]], [[MENU FORMAT]], [[MENU FRAME]], [[MENU FROM]], [[MENU QUERY]], [[MENU SCOPE]], [[MENUITEM()]] |
− | + | ||
==Description== | ==Description== | ||
Line 27: | Line 22: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Menus]] | ||
+ | [[Category:Menus Functions]] |
Latest revision as of 12:46, 23 August 2018
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