GetTreeName

Returns the name of the dimension to which an IHsvTreeInfo object reference has been set.

Syntax

<IHsvTreeInfo>.GetTreeName()

Return Value

String. The name of the dimension.

Example

This example tests whether an IHsvTreeInfo object reference declared in another procedure has been set for the Entity dimension. If it has not, an error message is displayed, and then the procedure is exited.

Dim sDim As String
sDim = m_cIHsvTreeInfo.GetTreeName()
If sDim <> "Entity" Then
  MsgBox "Error: The IHsvTreeInfo object reference " & vbCr _ 
  & "is not set to the Entity dimension."
  Exit Sub
End If