property OleEvent.CountParam as Long
Retrieves the count of the OLE event's arguments.

TypeDescription
Long A long value that indicates the count of the arguments.
The CountParam property returns the number of arguments that are passed to the OLE event. You can use this property to determine whether the event has any arguments, and if so, you can enumerate them using the Ev object.

The following sample shows how to enumerate the arguments of an OLE event:

Private Sub XMLGrid1_UserEditorOleEvent(ByVal Object As Object, ByVal Ev As EXMLGRIDLibCtl.IOleEvent, CloseEditor As Boolean, ByVal Node As EXMLGRIDLibCtl.INode)
    Debug.Print "Event name:" & Ev.Name
    If (Ev.CountParam = 0) Then
       Debug.Print "The event has no arguments."
    Else
       Debug.Print "The event has the following arguments:"
       Dim i As Long
       For i = 0 To Ev.CountParam - 1
          Debug.Print Ev(i).Name; " = " & Ev(i).Value
       Next
    End If
End Sub