TopLevelParentCategory Property
Returns the name of the dimension for the object.
Syntax
object.TopLevelParentCategory
Applies To
Discussion
This property is used to get the name of the dimension that a category belongs to.
This property will return an empty string if the category is the top level or if it is a calculation.
Type
String
Access
Read
Example
This example issues a message box telling the user which dimensions the second row and second column of the open report are from.
Sub Main()
Dim objPPRep As Object
Dim objRow As Object
Dim objCol As Object
Set objPPRep = GetObject (,"CognosPowerPlay.Report")
Set objRow = objPPRep.Rows(2)
Set objCol = objPPRep.Columns(2)
MsgBox objRow.Name & " is from dimension: " _
&objRow.TopLevelParentCategory
MsgBox objCol.Name & " is from dimension: " _
&objCol.TopLevelParentCategory
Set objRow = Nothing
Set objCol = Nothing
Set objPPRep = Nothing
End Sub