Programming with Reflection

image\rwnprg32.gif BeforeConnect event

 

Syntax Private Sub Session_BeforeConnect(Continue As Boolean)

 

Description

This event is triggered immediately before a connection is made.

Arguments

Continue Argument type: Boolean
Specifies whether Reflection should proceed with the connection. Reflection sets this argument to True when the event occurs. If you set Continue to False in the event procedure, Reflection does not procede with the connection.

Notes

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

· Reflection executes connection-related actions in the following order. Reflection makes the host connection between steps 2 and 3. If a BeforeConnect event procedure cancels the connection, no subsequent connection-related actions occur.

BeforeConnect event procedure.

2 Display of the Reflection Connect to Host/Service dialog box (if no host is configured).

3 Connect macro.

AfterConnect event procedure.

5 Events configured with Reflection's Event Setup dialog box (or using the OnEvent method) of the type "When a connection is made."

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command