GefEventContext.GetOleParmName (method)

Gets the name of the specified parameter from an ActiveX event.
Syntax: String = object.GetOleParmName ( Index )
Parameters:
Index As long -
Description: This method is only valid if the Type of the event is gefEventActiveX.

For example, if the control fires the event MouseDown(xPos As Integer, yPos As Integer) then using an index of 0 returns "xPos", and using 1 returns "yPos".

Example:

Sub EventContext_GetOleParmName()
    
    Dim oCimEvntContxt As GefEventContext
    Dim nI As Integer
    Set oCimEvntContxt = CimGetEventContext
    
    For nI = 0 To oCimEvntContxt.OleParmsCount - 1
        MsgBox "The OLE parameter with an index of " & nI & _
            " is " & """" & oCimEvntContxt.GetOleParmName(nI) & _
            """" & " with a value of " & _
            oCimEvntContxt.GetOleParm(nI)
    Next nI
    
End Sub