GefObjectEvent.Expression (property)

Gets and sets the string used as an expression.
Syntax: String = object.Expression
object.Expression = String
Description: The Expression property gets and sets the string used as an expression.

Example:

Sub GefObjectEvent_Expression()
    
    Dim oCimObj As GefObject
    Dim oCimObjEvnts As GefObjectEvents
    Dim oCimObjEvnt As GefObjectEvent
    
    Set oCimObj = CimGetObject
    Set oCimObjEvnts = oCimObj.Events
    If Not oCimObjEvnts Is Nothing Then
        Set oCimObjEvnt = oCimObjEvnts.Item(0)
        If Not oCimObjEvnt Is Nothing Then
            MsgBox "The event's expresion is " & _
                """" & oCimObjEvnt.Expression & """"
        End If
    End If
    
End Sub