Programming with Reflection

image\rwnprg32.gif Toggle method

 

Syntax object.Toggle Setting

 

Description

Changes the value of a Boolean property, such as FrameTerminalWindow. (A Boolean property is one that takes True and False as its only values. The data type for each property is given immediately below the syntax in that property's Help topic.)

You can explicitly set the value of a property. For example:

Session.FrameTerminalWindow = True

Session.FrameTerminalWindow = False

In these examples, the results are not influenced by the current setting. Using the Toggle method always changes the current setting to its opposite. For example:

Session.Toggle rcFrameTerminalWindow

This will turn the terminal window on or off, depending on the current setting.

Arguments

Setting Argument type: Enumeration
Specifies a Boolean property. (The data type for each property is given immediately below the syntax in that property's Help topic.)

 You must use the property identifier rather than the actual property name. The property identifier is a predefined constant consisting of the property name (with no period) preceded by the letters rc. For example, to toggle the setting of the FrameTerminalWindow property, you would use the following value for this argument:

 rcFrameTerminalWindow

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command