Programming with Reflection

image\rwnprg32.gif NewSession method

 

Syntax object.NewSession [SessionType], [SettingsFile]

 

Description

Opens a new Reflection window (session). For example, this command opens a new Reflection for HP session using the specified settings file:

Session.NewSession rcReflection1, "C:\Mypath\Myfile.r1w"

If you want to be able to control the new session from a macro or using Automation, use CreateObject instead of NewSession.

When NewSessionCurrentSettings is True and you use NewSession to open a session of the same Reflection product (either by omitting the SessionType argument or by using it to specify the same product you are running), the new session is configured using your current settings.

Arguments

SessionType Argument Type: Enumeration
Optional
Specifies what type of session to create. If omitted, the new session is the same type as the current session. Only session types corresponding to Reflection products available on your PC or file server can be used. The possible values are:

 rcConnectionWizard

 Start the Connection Wizard.

 rcReflection1

 Create a new instance of Reflection for HP.

 rcReflection2

 Create a new instance of Reflection for UNIX and OpenVMS (VT emulation).

 rcReflection4

 Create a new instance of Reflection for ReGIS Graphics (VT graphics emulation).

 rcReflectionIBM

 Create a new instance of Reflection for IBM.

 rcReflectionX

 Create a new instance of Reflection X.

 rcFTPClient

 Create a new instance of the Reflection FTP client application (supplied with all of the Reflection connectivity products listed above).

SettingsFile Argument Type: String
Optional
Specifies a settings file to be opened into the new window. If this argument is omitted, or if it's an empty string (""), a new Untitled session is created.

 

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command