Difference between revisions of "MENUITEM()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Menus
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to return selected menu item
 
Function to return selected menu item
Line 23: Line 19:
 
// 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 33: Line 29:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Menus]]
 +
[[Category:Menus Functions]]

Latest revision as of 17:07, 3 December 2009

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