_MenuInteract( ) API Library Routine

See Also   Example

Sets the itemid and the menuid to indicate which menu item was chosen, if any.

Syntax

int _MenuInteract(MENUID FAR *menuid, ITEMID FAR *itemid)
MENUID FAR *menuid;      /* Pointer to menu identifier. */
ITEMID FAR *itemid;      /* Pointer to menu item identifier. */

Remarks

If the user chooses any menu item, _MenuInteract( ) returns 1. If no item is chosen (for example, if the user presses ESC) _MenuInteract( ) returns 0.

For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.