Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmScreen Object / BeforeSendKeys Event
In This Topic
    BeforeSendKeys Event
    In This Topic
    Occurs before a data key is sent to the host.
    Syntax
    private Sub IbmScreen_BeforeSendKeys ( 
       ByVal sender As Object, _
       ByRef keys As String, _
       ByVal row As Integer, _
       ByVal column As Integer _
    ) 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 value of parameter keys contains the keys that are about to be sent. In the event handler function you may change the keys before they are sent to the host. The event can also be canceled by setting the return value of the event handler function to false. The return value false is the default if your event handler does not explicitly set it. If you cancel the event, the keys will not be sent to the host. By setting the function return value to true, the event continues with the keys in the parameter keys, which could contain different keys set by the event handler. The row and column parameters contain the location on the screen where the keys were entered.
    See Also