ShowTies Property

Sets or returns whether to show label ties.

Syntax

object.ShowTies

Applies To

Graph Object

Graphs

Discussion

For some graphs, labels along an axis can be connected or tied together. Set this property to True to display these ties.

ShowTies does not apply to pie graphs, scatter graphs, crosstabs, or a three-dimensional-bar graph.

Default: False

Type

Boolean

Access

Read/Write (Graph)

Write (Graphs)

Example

This example sets the ShowTies property for each applicable graph object in the active report.

Sub Main()
   Dim objPPRep As Object
   Dim objGraph As Object
   Dim intx As Integer
   Set objPPRep = GetObject(, "CognosPowerPlay.Report")
   intx=0
   Do
      intx=intx+1
      Set objGraph = objPPRep.Graphs.Item(intx)
      Select Case objGraph.Type
         Case 0,1,2,9
            MsgBox "ShowTies property does not apply
to " & _  
                   "these graph types. "
         Case Else         
            If objGraph.ShowTies = 0 Then
               objGraph.ShowTies = True
            Else
               objGraph.ShowTies = False
            End If
      End Select
   Loop Until intx = objPPRep.Graphs.Count
   Set objGraph = Nothing
   Set objPPRep = Nothing
End Sub

Related Topics