GefFrameFormat.FrameExpression (property)

Gets and sets the expression used by a frame.
Syntax: VARIANT = object.FrameExpression
object.FrameExpression = VARIANT
Description: A frame container consists of a sequence of frames. It evaluates the expression for each frame in turn. The first frame whose expression evaluates to True is the frame that gets displayed.

Example:

Sub FrameFormat_FrameExpression()
    
    Dim oCimObj As GefObject
    Dim oCimFrameFmt As GefFrameFormat
    Dim oCimfrmObj As GefObject
    Dim oCimFrmContFmt As GefFrameContainerFormat
    Dim oCimFrameObj As GefObject
    
    Set oCimObj = CimGetObject
    Set oCimFrmContFmt = oCimObj.FrameContainerFormat
    If Not oCimFrmContFmt Is Nothing Then
        Set oCimFrameObj = oCimFrmContFmt.CurrentFrame
        Set oCimFrameFmt = oCimFrameObj.FrameFormat
        If Not oCimFrameFmt Is Nothing Then
            MsgBox "The frame expression for the current frame " & _
                "is " & oCimFrameFmt.FrameExpression
        End If
    End If
    
End Sub