Programming with Reflection

image\rwnprg32.gif SetNumericProfile method


Syntax object.SetNumericProfile Setting, EnableFlag



Enables or disables modification of a numeric property. Use the SetStringProfile method for string properties. If the ability to modify a particular property has been disabled by your system administrator, you cannot enable it using SetNumericProfile—this returns an error.

Disabling a property automatically disables the equivalent action in Reflection. For example, the following command disables the Auto Connect option in the Session Setup dialog box and also results in an error if you attempt to change the value of the AutoConnect property programmatically.

 .SetNumericProfile rcAutoConnect, rcDisable


Setting Argument type: Enumeration
Specifies a numeric property. 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 enable or disable the FrameTerminalWindow property, use the following value for this argument:


 Numeric properties are those whose data type is Boolean, Long, or Enumeration. (The data type for each property is given immediately below the syntax in that property's Help topic.)

EnableFlag Argument type: Enumeration
Specifies whether the value of the property can be modified. The values are:


 Allows modification of the setting.


 Prevents modification of the setting.


 If the setting is, by default, modifiable, then this value is equivalent to rcEnable. If the setting is not modifiable by default, 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