Article ID: 116271 - View products that this article applies to.
This article was previously published under Q116271
This article has been archived. It is offered "as is" and will no longer be updated.
In order for the SET SKIP OF PAD <pad name> OF <menu name> .T. command to work on a menu created with the FoxPro Menu Builder, the menu pad name must be given a user-assigned name. The Menu Prompt Options dialog box contains a Pad Name check box that can be used to assign a name to a menu pad. That name can then later be used to refer to that pad name in the SET SKIP OF PAD command.
In a menu created with the Quick Menu command, each standard menu pad is automatically assigned a name according to the "MENU - System Menu Names" section of the FoxPro 2.6 "Language Reference" manual, or in Visual FoxPro online Help, under the topic "Menu Names, Visual FoxPro System (internal)".
However, in a custom menu prompt, if the Pad Name check box is not selected, the pad is automatically assigned a unique name, such as _qp70zgq9j, by the GENMENU menu generator. This unique pad name cannot be referred to since it is assigned dynamically each time the menu is generated. If this unique name is referred to, unexpected behavior will occur during a SET SKIP OF PAD command.
To illustrate how to work around this behavior, the following steps will create a new menu system with three pads, assign a pad name to the second pad, and allow the second pad to be enabled or disabled by selecting the third pad:
Note that the Admin menu is enabled at first and is dimmed after the Toggle Admin menu is chosen.
Contact us for more help