Programming with Reflection

image\rwnprg32.gif SaveXML method

 

Syntax object.SaveXML Filename, XMLType, ExistsOption, Option

 

Description

Creates a file in XML format containing information about the current Reflection session. Use the Type and Options arguments to specify what information is written to this file.

For example, the following statement saves information about all changed settings to a file called Test.xml:

Session.SaveXML "C:\Mypath\Test.xml", rcXMLSettings, rcOverwrite, rcChanged

Arguments

Filename Argument Type: String
Specifies a name for the XML file. The file is saved to the current folder unless you provide path information.

XMLType Argument Type: Enumeration
Specifies what type of information to write to the XML file.

 rcXMLSettings

 Write all Reflection settings. This creates the XML equivalent of a complete settings file.

 rcXMLProperties

 Write only those Reflections settings that are available as properties. Note that some Reflection settings are controlled by methods and these (including connection settings, key mapping, mouse mapping, menu configuration, toolbar setup, hotspots, and events) are not included in a file created using this option.

 rcXMLConnection

 Write only the connection settings.

 rcXMLColors

 Write only the color settings.

 rcXMLKeymap

 Write only the keyboard mapping settings.

 rcXMLMousemap

 Write only the mouse mapping settings.

 rcXMLMenus

 Write only the menu settings (for both the main menu and the terminal window context menu).

 rcXMLToolbars

 Write only the toolbar settings.

 rcXMLHotspots

 Write only the hotspot settings.

 rcXMLEvents

 Write only the event settings.

ExistsOption Argument Type: Enumeration
Specifies what to do if the file exists.

 rcOpenError

 Generates an error if the file already exists.

 rcAskUser

 Prompts the user to either cancel or overwrite the file.

 rcOverwrite

 Overwrites the existing file.

Option Argument type: Enumeration
Specifies additional conditions for saving information.

 rcAll

 Save information about all settings.

 rcChangedFactory

 Only save information about settings that have been changed from the factory defaults.

 rcChangedProfile

 Only save information about settings that have been changed from the defaults configured for your site by a system administrator.

 

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command