EnumDefaultAncestors

Returns the member IDs of a given member’s default ancestors. If the top-level member of the dimension hierarchy is passed, EnumDefaultAncestors returns an empty Variant.

Tip:

You can return the labels of a member’s default ancestors with EnumDefaultAncestorsLabels.

Syntax

<IHsvTreeInfo>.EnumDefaultAncestors lMemberID, pvaralAncestorsIDs

Argument

Description

lMemberID

Long (ByVal). The member ID of the dimension member.

pvaralAncestorsIDs

Variant. Returns an array of the default ancestors’ member IDs, or an empty Variant if a top-level member is passed to the lMemberID argument.

If an array is returned, it has a subtype of Long.