Programming with Reflection

image\rwnprg32.gif BeforeExit event

 

Syntax Private Sub Session_BeforeExit(Continue As Boolean)

 

Description

This event is triggered before Reflection initiates an exit command.

Arguments

Continue Argument type: Boolean
Specifies whether Reflection should procede with the exit command. Reflection sets this argument to True when the event occurs. If you set Continue to False in the event procedure, Reflection cancels the exit (and remains connected if a connection exists).

Notes

· Event procedures must be created in the code module for the Reflection Session object (ThisSession).

· Reflection executes exit-related actions in the following order:

BeforeExit event procedure.

2 Display of the Exit Reflection dialog box (if ConfirmExit is set to the default value of True and you are connected to a host).

3 Display of the Reflection Save Changes on Exit dialog box (if SaveChanges is set to the default value of rcChangesAskUser and macros or settings have been changed).

4 Events configured with Reflection's Event Setup dialog box (or using the OnEvent method) of the type "When Reflection exits."

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command