Reflection .NET API
Attachmate.Reflection.Emulation.OpenSystems Assembly / Attachmate.Reflection.Emulation.OpenSystems Namespace / IScreen Interface / DefineEvent Method
The integer value used as an identifier for this event. If the value is set to 0, a value is automatically assigned.
The event type being defined.
Mandatory for EventTypes that require a String parameter, otherwise ignored.
The screen row position (the first row = 1). Mandatory for EventTypes that require a Row parameter, otherwise ignored.
The screen column position (the first column = 1). Mandatory for EventTypes that require a Column parameter, otherwise ignored.


In This Topic
    DefineEvent Method (IScreen)
    In This Topic
    Defines a specific event
    Syntax
    'Declaration
     
    
    Function DefineEvent( _
       ByVal EventNumber As Integer, _
       ByVal EventType As DefinedEventType, _
       ByVal String As String, _
       ByVal Row As Integer, _
       ByVal Column As Integer _
    ) As Integer
    'Usage
     
    
    Dim instance As IScreen
    Dim EventNumber As Integer
    Dim EventType As DefinedEventType
    Dim String As String
    Dim Row As Integer
    Dim Column As Integer
    Dim value As Integer
     
    value = instance.DefineEvent(EventNumber, EventType, String, Row, Column)

    Parameters

    EventNumber
    The integer value used as an identifier for this event. If the value is set to 0, a value is automatically assigned.
    EventType
    The event type being defined.
    String
    Mandatory for EventTypes that require a String parameter, otherwise ignored.
    Row
    The screen row position (the first row = 1). Mandatory for EventTypes that require a Row parameter, otherwise ignored.
    Column
    The screen column position (the first column = 1). Mandatory for EventTypes that require a Column parameter, otherwise ignored.

    Return Value

    Assigned event number
    See Also