Programming with Reflection
RecordToggle property
Syntax |
|
Data type |
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 valuethat 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.
The default is False.