Returns an array containing the member IDs of a given parent’s base-level members. You can also use EnumBaseMemberIDs to get all of a dimension’s base-level members.
<IHsvTreeInfo>.EnumBaseMemberIDs lParentID, bIgnoreDuplicates, pvaralBaseMemberIDs
The following example prints the labels of the Regional entity’s base-level members to the Immediate window. The example loops through the array returned by EnumBaseMemberIDs, passing the member IDs to GetLabel.
Dim cMetadata As HsvMetadata, lPar As Long
Dim cTreeInfo As IHsvTreeInfo, vaIDs
Dim sLabel As String
Set cMetadata = m_cSession.Metadata
Set cTreeInfo = cMetadata.Entities
lPar = cTreeInfo.GetItemID("Regional")
cTreeInfo.EnumBaseMemberIDs lPar, True, vaIDs
'Exit the sub if vaIDs is empty.
If IsEmpty(vaIDs) = True Then Exit Sub
For i = LBound(vaIDs) To UBound(vaIDs)
cTreeInfo.GetLabel vaIDs(i), sLabel
Debug.Print sLabel
Next i