Programming with Reflection

image\rwnprg32.gif DefinedEvent event

 

Syntax Private Sub Session_DefinedEvent(EventNumber As Long, EventType As Long, TheString As String, Row As Long, Column As Long, Key As Long)

 

Description

This event is triggered whenever an event defined by the DefineEvent method occurs. Note: The macro containing the DefineEvent statement must be executed in the current Reflection session. Events defined this way remain defined as long as your Reflection session lasts, or until they are removed using RemoveEvent or ClearEvents.

Arguments

EventNumber Argument type: Integer
The event number assigned to this event in the DefineEvent statement.

EventType Argument type: Enumeration
The event type for the define event. See DefineEvent for a list of possible event types.

TheString Argument type: String
Specifies the string that defines string-oriented events. This argument is only relevant when you have defined an event type that requires a string--that is, when EventType is rcCommString, rcDisplayString, rcTimeOfDay, or rcTime.

Row Argument type: Enumeration or Integer
Specifies the row location for screen events. This can be a specific row number or the value rcAnyRow depending on how the event was defined. This argument is relevant when EventType is rcEnterField, rcExitField, rcEnterPos, rcExitPos, or rcDisplayString. .

Column Argument type: Enumeration or Integer
Specifies the column location for screen events. This can be a specific column number or the value rcAnyCol depending on how the event was defined. This argument is relevant when EventType is rcEnterField, rcExitField, rcEnterPos, rcExitPos, or rcDisplayString.

Key Argument type: Enumeration
Specifies a terminal key constant and is only relevant when EventType is rcTerminalKeystroke. You can specify a particular terminal key (Click here to see a list of terminal keys for 3270 terminals, or here to see a list of terminal keys for 5250 terminals), or use rcAnyTerminalKey to check for any terminal keystroke.

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