AEVENTS( ) Function
You can use the AEVENTS( ) function to retrieve the number of existing event bindings.
AEVENTS( ArrayName [, 0 | 1 | oEventObject ] ) |
Parameters
- ArrayName
-
Specifies the name of the array that contains the results of AEVENTS( ).
- 0
-
Specifies that AEVENTS( ) returns a three-element array containing an object reference to the current event source, the name of the triggered event, and how the event was triggered.
Column Description Type 1
Event source
Object reference
2
Event
String
3
Event type, or how event was raised.
0 - System
1 - RAISEEVENT( ) function
2 - Method call
The third array element indicates how an event was triggered. If the event is a property, this value can be 1 or 2. The value is 2 if the property is set or assigned.
- 1
-
Specifies that AEVENTS( ) returns a four-column array containing information about Windows Message (Win Msg) events.
The array contains one row for each binding. Bindings are created with the BINDEVENT( ) Function.
The following table describes the contents of each column in the array.
Column Description Type 1
hWnd
Integer
2
Window Message
Integer
3
Reference of handler
Object reference
4
Handler delegate
String
- oEventObject
-
Specifies an object reference. If you specify an object reference, AEVENTS( ) returns a five-column array that contains the events raised and the delegate methods for oEventObject. Each row in ArrayName represents a binding. The following table describes the information in each of the five columns.
Column Description Type 1
.T. if second element is the event source
.F. if second element is the event handler
Logical
2
Event source if you pass the event handler to oEventObject; otherwise, event handler if you pass the event source to oEventObject.
Object reference
3
Event
String
4
Delegate method
String
5
BINDEVENT( ) flags
Integer
When you pass oEventObject, the number of bindings returned by AEVENTS( ) should equal the number of unbound events returned by the UNBINDEVENTS( ) function when passing only the oEventObject parameter.
Return Value
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic