GetDefaultHierarchyPosition

Returns the default position of a member within a dimension’s hierarchy.

Note:

A dimension’s hierarchy is represented by the system-generated [Hierarchy] member list.

Syntax

<IHsvTreeInfo>.GetDefaultHierarchyPosition lMemberID, plPos

Argument

Description

lMemberID

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

plPos

Long. Returns the position of the member in the fully expanded hierarchy. This is a zero-based value. For example, in the following hierarchy, California would return 3 and Management would return 4.

For a member that appears more than once in the hierarchy, GetDefaultHierarchyPosition returns the position where the member is located under its default parent.

Tip:

To get a member’s default parent, you can use GetDefaultParent or GetDefaultParentLabel.