GET MENU ITEMS

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11


GET MENU ITEMS (menu; menuTitlesArray; menuRefsArray)

ParameterTypeDescription
menuMenuRef | LongintMenu reference or Menu number
menuTitlesArrayString array (32)Array of menu titles
menuRefsArrayString array (16)Array of menu references

Description

The GET MENU ITEMS command returns, in the menuTitlesArray and menuRefsArray arrays, the titles and IDs of all the items of the menu or menu bar designated by the menu parameter.

In the menu parameter, you can pass a menu reference (MenuRef), a menu bar number or a menu bar reference obtained using the Get menu bar reference command.

If no menu reference is associated with an item, an empty string is returned in the corresponding array element.

Example

You want to find out the contents of the menu bar of the current process:

   ARRAY TEXT(menuTitlesArray;0)
   ARRAY TEXT(menuRefsArray;0)
   MenuBarRef:=Get menu bar reference(Frontmost process)
   GET MENU ITEMS(MenuBarRef;menuTitlesArray;menuRefsArray)

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next