Programming with Reflection

image\rwnprg32.gif GetCommandProfile method

 

Syntax Executability = object.GetCommandProfile(Command)

 

Description

Returns a value indicating whether the specified method can be executed. Use SetCommandProfile to disable a method. Disabling a method also prevents you from performing the equivalent action in Reflection. For example, disabling the OpenSettings method also disables the Open command on Reflection's File menu.

Arguments

Command Argument type: String
Specifies a Reflection method. For example "Connect". An error occurs if this value is not a recognized method. This argument is not case sensitive.

Return

Executability Return type: Boolean
Returns True (-1) if the specified command is executable, and 0 (False) if it is not executable.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics