InfoConnect for Airlines VBA Guide
BeforeSendKeysEventHandler Delegate
The source of the event.
Contains the keys that are about to be sent.
The row position where the keys were entered.
The column position where the keys were entered.
The event occurs before a data key is sent to the host.
Syntax
private Sub Object_BeforeSendKeysEventHandler( _
   ByVal sender As Object, _
   ByRef keys As String, _
   ByVal row As Long, _
   ByVal column As Long _
) As Boolean

Parameters

sender
The source of the event.
keys
Contains the keys that are about to be sent.
row
The row position where the keys were entered.
column
The column position where the keys were entered.

Return Value

A boolean value that determines whether the event is cancelled.

If set to false (the default), the event is cancelled and the keys are not sent to the host.

If set to true, the keys are sent to the host.

Remarks

The data key can be triggered from the keyboard, an application programming interface, or a macro.
The SendKeys method triggers a BeforeSendKeys event for each SendKeys method invocation.

You can change the keys before they are sent to the host.

See Also