Share via


POPUP( ) Function

Returns as a string the name of the active menu, or a logical value indicating if a menu has been defined.

POPUP([cMenuName])

Parameters

  • cMenuName
    Returns a logical value indicating if cMenuName has been defined. POPUP( ) returns true (.T.) if the menu you specify has been defined; otherwise POPUP( ) returns false (.F.).

Return Value

Character or Logical

Remarks

POPUP( ) returns the name of the active menu as a character string if you omit the optional cMenuName argument. A menu must be defined and active for POPUP( ) to return its name. Menus are created and activated with DEFINE POPUP and ACTIVATE POPUP. The menu can also be a Visual FoxPro system menu. POPUP( ) returns an empty string if a menu isn't defined and active or you issue POPUP( ) from the Command window.

See Also

Reference

ACTIVATE POPUP Command

BAR( ) Function

DEFINE BAR Command

DEFINE POPUP Command

ON SELECTION POPUP Command

Other Resources

Commands (Visual FoxPro)