InfoConnect for Airlines VBA Guide
WindowMode Property
Gets the WindowMode.
This sample determines whether the interface mode of the workspace supports multiple documents and displays the number of views open in the workspace.
Sub Sample_Frame_WindowMode()
    'If in Browser or Ribbon mode, multiple documents are supported
    If ThisFrame.WindowMode = WindowModes_Browser Or _
       ThisFrame.WindowMode = WindowModes_Ribbon Then
        MsgBox ("There are " & Str(ThisFrame.ViewCount) & " views open within this frame instance.")
    Else  'WindowModes_Classic
        MsgBox ("Since this frame is in ""classic"" mode, there cannot be more " & _
               "than one session view open in it.")
    End If
End Sub
See Also