Returns a count of the base-level members beneath a dimension member.
<IHsvTreeInfo>.GetNumBaseMembers lParentID, bIgnoreDuplicates, plNumBaseMembers
The following example compares the number of base members for entities named Regional and Management. If the respective counts returned by GetNumBaseMembers are different, any code placed within the If structure would be executed.
Dim cTreeInfo As IHsvTreeInfo, lPar As Long, lRegCount As Long Dim lManagCount As Long Set cTreeInfo = m_cMetadata.Entities lPar = cTreeInfo.GetItemID("Regional") cTreeInfo.GetNumBaseMembers lPar, True, lRegCount lPar = cTreeInfo.GetItemID("Management") cTreeInfo.GetNumBaseMembers lPar, True, lManagCount If lRegCount <> lManagCount Then … End If