Makes the command visible if Visible is TRUE, and invisible if Visible is FALSE. A command that has been made invisible can be restored with this method. A command that has been removed with DeleteMenuItem cannot be restored.
Object. SetMenuItemVisible (MenuCmdNo, Visible)
|
Part |
Data type |
Description |
|
Object |
Object |
An object expression that evaluates to an object in the Applies To list. |
|
MenuCmdNo |
Long |
Could be any of your user-defined commands or one of the standard commands. See the list of user-defined menu constants and the list of menus for each FORMS module: Manager, Scan, Interpret, Verify, and Transfer. |
|
Visible |
Boolean |
To make the command visible, use TRUE. If the value is set to FALSE, the command will be invisible. |
None.
If Visible is FALSE, only the accelerator triggers the event. If the menu is enabled, see GetMenuItemEnabled.