SetMenuItemEnabled method

Applies to

Description

Enables the MenuCmdNo command if Enabled is TRUE, and disables it if Enabled is FALSE.

Syntax

Object. SetMenuItemEnabled (MenuCmdNo, Enabled)

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.

Enabled

Boolean

To enable the menu command, use TRUE. To disable the menu set the value to FALSE.

Return value

None.

Remarks

Classic method

XxxxSetMenuItemEnabled