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. There are several versions of the syntax.

SET SKIP OF MENU MenuBarName1 lExpression1
SET SKIP OF PAD MenuTitleName OF MenuBarName2 lExpression2
SET SKIP OF POPUP MenuName1 lExpression3
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:

 CopyCode imageCopy Code
SET SKIP OF MENU _MSYSMENU .T.

It can be enabled with this command:

 CopyCode imageCopy Code
SET SKIP OF MENU _MSYSMENU .F.
PAD MenuTitleNameOF 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:

 CopyCode imageCopy Code
SET SKIP OF PAD _MSM_EDIT OF _MSYSMENU .T.

The menu title can be enabled with this command:

 CopyCode imageCopy Code
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:

 CopyCode imageCopy Code
SET SKIP OF POPUP _MEDIT .T.

The menu can be enabled with this command:

 CopyCode imageCopy Code
SET SKIP OF POPUP _MEDIT .F.
BAR nMenuItemNumber| SystemItemNameOF 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:

 CopyCode imageCopy Code
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:

 CopyCode imageCopy Code
SET SKIP OF BAR _MFI_NEW OF _MFILE .F.

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

Expand imageRemarks

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic