MENU GET TEXT statement

Purpose

Return the text associated with a given menu item.

Syntax

MENU GET TEXT hMenu, [BYCMD] position& TO txt$

Remarks

Return the text displayed in the menu item identified by position&.

hMenu

Handle of the menu that contains the menu item to be examined.

position&

Position of the menu item to examine.  If BYCMD is specified, position& refers to the unique menu item identifier of the item to examine. Otherwise, position& indicates the physical position of the menu item within the menu, where position& = 1 for the first position, position& = 2 for the second position, and so on.

txt$

String variable where the text from the menu item will be placed.

See also

Dynamic Dialog Tools, Menus, MENU ADD POPUP, MENU ADD STRING, MENU ATTACH, MENU DELETE, MENU DRAW BAR, MENU GET STATE, MENU NEW BAR, MENU NEW POPUP, MENU SET STATE, MENU SET TEXT