Programming with Reflection

image\rwnprg32.gif SetCommandRecording method

 

Syntax object.SetCommandRecording CommandName, EnableFlag

 

Description

Specifies whether a particular method can be recorded. Use the GetCommandRecording method to determine if a method can be recorded. When you disable a method for recording, you make it impossible for the recorder to "see" the equivalent action. So, for example, if you disable recording of the OpenSettings method, you prevent the recorder from being able to see (or to record) when the user clicks the Open command on Reflection's File menu.

Arguments

CommandName Argument type: String
Specifies a Reflection method.

EnableFlag Argument type: Enumeration
Specifies whether the command can be recorded. The values are:

 rcEnable

 Allows recording of the command.

 rcDisable

 Prevents recording of the command.

 rcDefault

 If the command is, by default, recordable, then this value is equivalent to rcEnable. If the command is, by default, not recordable, then this value is equivalent to rcDisable.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command