IsMemberAChildOf

Indicates whether one member is a child of another member.

Syntax

<IHsvTreeInfo>.IsMemberAChildOf lMemberID, lParentID, pbIsChildOf

Argument

Description

lMemberID

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

lParentID

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

pbIsChildOf

Boolean. Returns TRUE if the lMemberID member is a child of the lParentID member, otherwise FALSE.

Example

The following example tests whether the Connecticut entity is a child of the Regional entity, and prints the Boolean returned by IsMemberAChildOf to the Immediate window.

Dim lItem As Long, cTreeInfo As IHsvTreeInfo, lPar As Long
Dim bRet As Boolean
Set cTreeInfo = m_cMetadata.Entities
lItem = cTreeInfo.GetItemID("Connecticut")
lPar = cTreeInfo.GetItemID("Regional")
cTreeInfo.IsMemberAChildOf lItem, lPar, bRet
Debug.Print bRet