HasChildren

Returns a Boolean that indicates whether a dimension member has child members.

Syntax

<IHsvTreeInfo>.HasChildren(lItemID, pbHasChildren)

Argument

Description

lItemID

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

pbHasChildren

Boolean. Returns TRUE if the dimension member has child members, otherwise FALSE.

Return Value

Integer. Indicates the success of the function call; returns 0 for success or -1 for an error.

Example

The following example tests whether the entity selected in a combo box named comboEnts has children. If it does, then any code placed within the If structure would be executed.

Dim cIHsvTreeInfo As IHsvTreeInfo
Dim lEntID As Long, bHasKids As Boolean
Set cIHsvTreeInfo = m_cMetadata.Entities
lEntID = cIHsvTreeInfo.GetItemID(comboEnts.Text)
cIHsvTreeInfo.HasChildren lEntID, bHasKids
If bHasKids = True Then
  …
End If