Difference between revisions of "MENUITEM()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 23: | Line 23: | ||
// UDF to set a filter | // UDF to set a filter | ||
function setfilter | function setfilter | ||
− | save screen | + | save screen |
− | menu query command ">" | + | menu query command ">" |
− | m_filter = menuitem() | + | m_filter = menuitem() |
− | set filter to &m_filter | + | set filter to &m_filter |
− | restore screen | + | restore screen |
return .T. | return .T. | ||
</code> | </code> | ||
Line 36: | Line 36: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Menus]] | ||
+ | [[Category:Menus Functions]] |
Revision as of 16:09, 2 June 2009
Class
Menus
Purpose
Function to return selected menu item
Syntax
MENUITEM()
See Also
@...MENU, MENU, MENU(), MENU AT, MENU BROWSE, MENU FIELDS, MENU FILES, MENU FROM, MENU QUERY, MENU SCOPE, SET KEY
Description
The MENUITEM() function returns the selected menu item from a previously activated menu as a character string. This function is valid on any of the Recital 4GL menu commands. The MENUITEM() returns the portion of the selected menu item that was displayed in the menu. If no item was selected, MENUITEM() returns a null string.
Example
// UDF to set a filter function setfilter save screen menu query command ">" m_filter = menuitem() set filter to &m_filter restore screen return .T.
Products
Recital Mirage Server, Recital Terminal Developer