Indicates whether a member is in a base-level position beneath another member in a dimension hierarchy.
<IHsvTreeInfo>.IsMemberABaseOf lMemberID, lParentID, pvarbIsBaseOf
This example creates a function that takes two dimension member labels and returns a Boolean indicating whether the first member is a base-level member beneath the second member. GetItemID returns the member IDs of the dimension members passed to the function. These IDs are passed to IsMemberABaseOf, and the Boolean returned is assigned as the example function’s return value.
Function isBaseEntityFromLabel(sMem, sPar) As Boolean Dim cTreeInfo As IHsvTreeInfo, lMemID As Long Dim lParID As Long, bReturn As Boolean Set cTreeInfo = m_cMetadata.Entities lMemID = cTreeInfo.GetItemID(sMem) lParID = cTreeInfo.GetItemID(sPar) cTreeInfo.IsMemberABaseOf lMemID, lParID, bReturn isBaseEntityFromLabel = bReturn End Function