Condividi tramite


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])

Return Values

Character or Logical

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.).

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

ACTIVATE POPUP | BAR( ) | DEFINE BAR | DEFINE POPUP | ON SELECTION POPUP