Programming with Reflection

image\rwnprg32.gif OpenSettings method

 

Syntax object.OpenSettings SettingsType, Filename

 

Description

Opens a Reflection settings file. For example, this statement opens the toolbar settings in the specified settings file:

Session.OpenSettings rcToolbar, "C:\Mypath\Myfile.rsf"

Arguments

SettingsType Argument type: Enumeration
Specifies what type of settings to load from the file. The 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.

 rcKeyMap

 Loads settings relating to keyboard and mouse mapping.

 rcToolbar

 Loads settings relating to the toolbar.

 rcColors

 Loads settings relating to color configuration.

 rcHotspots

 Loads settings relating to hotspot configuration.

 rcMenus

 Loads settings relating to menu configuration.

 rcMainframeXferFile

 Loads settings relating to 3270 file transfer. Note: Using this value is equivalent to opening a Transfer Request (.mto) file using the Open button in the File Transfer dialog box.

 rcAs400XferFile

 Loads settings relating to 5250 file transfer. Note: Using this value is equivalent to opening a Transfer Request (.xto) file using the Open button in the File Transfer dialog box.

 rcSettingsUpdate

 Loads the settings configured in a settings update file.

 rcXMLSettingsFile

 Loads settings that have been saved in XML format.

 rcRWebSettingsFile

 Loads settings from a Reflection for the Web configuration file.

 rcLayout

 Loads a layout file and opens all Reflection sessions that were saved to that layout.

Filename Argument type: String
The settings file to be opened. Reflection looks in the current directory unless you provide path information.

 

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command