Programming with Reflection

image\rwnprg32.gif BeforeTransmitString event

 

Syntax Private Sub Session_BeforeTransmitString(TheString As String, Continue As Boolean)

 

Description

This event is triggered before Reflection transmits a character or a string of characters to the host.

Arguments

TheString Argument type: String
The character that is about to be transmitted to the host. If the value of TheString is changed in the BeforeTransmitString event procedure, Reflection transmits the new character(s) to the host.

 Note: The number of characters in the string depends on the kind of connection you have. If Reflection is transmitting each character as you type it, the string will be one character long. If Reflection is in Block mode, the string will contain an entire screenful of information. If you use the Transmit method, this string will contain the contents of the String argument.

Continue Argument type: Boolean
Specifies whether Reflection should transmit the character(s) to the host. Reflection sets this argument to True when the event occurs. If you set Continue to False in the event procedure, Reflection cancels the transmission.

Notes

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

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command