SetCmdProcessing Method

Sets a procedure to process the menu item command.

Applies to: MenuItem object

Syntax

[[Set] bRet =] object.SetCmdProcessing ( sOnCmdSub [, sOnCmdModule] )

The MenuItemByCmdID method syntax has these parts:

Part Description
object Required. An expression, that returns an instance of the MenuItem object.
sOnCmdSub Required. An expression that returns a String value. Represents the processing procedure name.
sOnCmdModule Optional. An expression that returns a String value. Represent the external module (shared library on the Mac or *.dll on the Windows platform).
bRet Optional. A Boolean type variable.

Remarks

The SetCmdProcessing method returns True if setting was successfull and False in other case.