Programming with Reflection

image\rwnprg32.gif RecordToggle property

 

Syntax

object.RecordToggle
object.RecordToggle = Value

Data type

Boolean

 

Description

Returns (first syntax line) or specifies (second syntax line) what happens when the execution of the Toggle method is recorded. (This could happen, for example, if you defined a button to execute a toggle, started recording, and then recorded choosing the button.)

When RecordToggle is False, the recorder captures the actual value that results from the user's action (either True or False). When the recorded macro is run, the setting is always set to that value, regardless of the current value of the setting.

When this property is True, the recorder faithfully records the toggling of the value—that is, a switch to the opposite value. When the macro is run later, the value of the property is switched again, regardless of its current value. If it's True, it becomes False; if its False it becomes True.

Values

The default is False.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this property