expression.DefineEvent( _ ByVal EventNumber As Integer, _ ByVal EventType As DefinedEventType, _ ByVal StringParam As String, _ ByVal Row As Integer, _ ByVal Column As Integer _ ) As Integer
where expression is a variable that represents a Screen Object
Parameters
- EventNumber
- The Long value used as an identifier for this event. If the value is set to 0, a value is automatically assigned.
- EventType
- A DefinedEventType value that specifies the event type being defined.
- StringParam
- Specifies information corresponding to the event type. For DefinedEventType_TimeElapsed and DefinedEventType_Silence, this specifies an interval of time in HH:MM:SS format, For DefinedEventType_TimeOfDay, this specifies time of day. For DefinedEventType_ReceiveString and DefinedEventType_DisplayString, it specifies the string. For other event types, it is 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