Share via


SET SKIP OF Command

Enables or disables a menu, menu bar, menu title, or menu item for user-defined menus or the Microsoft Visual FoxPro system menu.

SET SKIP OF MENU MenuBarName1 lExpression1

-Or-

SET SKIP OF PAD MenuTitleName OF MenuBarName2 lExpression2

-Or-

SET SKIP OF POPUP MenuName1 lExpression3

-Or-

SET SKIP OF BAR nMenuItemNumber | SystemItemName OF MenuName2 
   lExpression4

Parameters

  • MENU MenuBarName1lExpression1
    Enables or disables the Visual FoxPro system menu bar or user-defined menu bar created with DEFINE MENU. For example, the Visual FoxPro system menu bar _MSYSMENU can be disabled with this command:

    SET SKIP OF MENU _MSYSMENU .T.
    

    It can be enabled with this command:

    SET SKIP OF MENU _MSYSMENU .F.
    
  • PAD MenuTitleName OF MenuBarName2lExpression2
    Enables or disables a Visual FoxPro system menu title or a user-defined menu title created with DEFINE PAD. For example, the Visual FoxPro Edit menu title can be disabled with this command:

    SET SKIP OF PAD _MSM_EDIT OF _MSYSMENU .T.
    

    The menu title can be enabled with this command:

    SET SKIP OF PAD _MSM_EDIT OF _MSYSMENU .F.
    
  • POPUP MenuName1lExpression3
    Enables or disables a Visual FoxPro system menu or a user-defined menu created with DEFINE POPUP. For example, the Visual FoxPro Edit menu can be disabled with this command:

    SET SKIP OF POPUP _MEDIT .T.
    

    The menu can be enabled with this command:

    SET SKIP OF POPUP _MEDIT .F.
    
  • BAR nMenuItemNumber | SystemItemName OF MenuName2lExpression4
    Enables or disables a menu item on a Visual FoxPro system menu or a user-defined menu item created with DEFINE BAR. For example, the New command on the Visual FoxPro File menu can be disabled with this command:

    SET SKIP OF BAR _MFI_NEW OF _MFILE .T.
    

    where SystemItemName specifies the menu command _MFI_NEW, MenuName2 specifies the menu _MFILE, and lExpression4 specifies the logical expression .T.. The menu command can be enabled with this command:

    SET SKIP OF BAR _MFI_NEW OF _MFILE .F.
    

    Use nMenuItemNumber to specify a menu item created with DEFINE BAR.

Remarks

For a complete listing of the internal names of Visual FoxPro system menu components, see System Menu Names. You can also use SYS(2013) to return the system menu internal names.

If the logical expression lExpression evaluates to true (.T.), the menu, menu bar, menu name, or menu item included in SET SKIP OF is disabled, appears dimmed, and can't be selected. If lExpression evaluates to false (.F.), the menu, menu bar, menu name, or menu item is enabled and can be selected.

See Also

CREATE MENU | DEFINE BAR | DEFINE MENU | DEFINE PAD | DEFINE POPUP | System Menu Names Overview | SKPBAR( )