Programming with Reflection

image\rwnprg32.gif OpenSettings method

 

Syntax object.OpenSettings Filename, [Type]

 

Description

Opens a settings file or activates a group of settings from a settings file.

For example, this statement opens the toolbar settings in the specified UNIX and OpenVMS settings file:

Session.OpenSettings "C:\Mypath\Myset.r2w", rcToolbar

Arguments

File name Argument Type: String
Required
Specifies the path and filename for the settings file. Supply complete path information if the file isn't on the Reflection macro path.

Type Argument Type: Enumeration
Optional
Use this argument to activate only some settings in a complete settings file. For example, this command will activate only the color settings in the specified file:

      Session.OpenSettings "MyFile.r2w", rcColors

 If this argument is omitted, the default is rcSettings. Use only one constant value for this argument. You cannot add two values. Only rcSettings changes all existing settings. If you use one of the other options, all existing settings remain unchanged except those specified. The possible values are:

 rcSettings

 Loads the specified settings file, including all settings and macros. You must be disconnected to use this value. Note: This value is not available if you are using OpenSettings in a Reflection macro. It is available if you use this method on Reflection's command line, in a Reflection Basic script, or if you are using Automation to control Reflection from another application.

 rcColors

 Activates just the color settings in the file, and ignores all other settings.

 rcConnection

 Activates just the connection settings in the file, and ignores all other settings.

 rcHotspots

 Activates just the hotspot settings in the file, and ignores all other settings.

 rcKeymap

 Activates just the keymap (keyboard and mouse map) settings in the file, and ignores all other settings.

 rcMenuMap

 Activates just the menu settings in the file, and ignores all other settings.

 rcToolbar

 Activates just the toolbar settings in the file, and ignores all other settings.

 

 

image\jump.gif Keyword Index

image\popup.gif Reflection products that use this command

image\popup.gif Related Topics