Examples

These examples demonstrate three different ways to open a new Reflection session.

Using a settings file

This example opens a new session using an existing settings file:

Sub NewSessionSettingsFile()

'Open a new session using an existing settings file

Session.NewSession "C:\Mypath\Myfile.rsf"

End Sub

Using default settings

This example opens a new untitled session using default settings:

Sub NewSessionDefaultSettings()

'Open a new session using default settings

Session.NewSessionCurrentSettings = False

Session.NewSession ""

End Sub

Using current settings

This example modifies the background color and opens a new untitled session using the current settings and macros, so the new session will show the same background color:

Sub NewSessionSameSettings()

'Change display and start a new session using current settings

With Session

.BackgndColor = rcBlue

.NewSessionCurrentSettings = True

.NewSession ""

End With

End Sub