HypIsParent

Data source types: Essbase

HypIsParent() checks whether the specified member is the parent of another specified member.

Syntax

HypIsParent(vtSheetName, vtMemberName, vtParentName)

ByVal vtSheetName As Variant

ByVal vtMemberName As Variant

ByVal vtParentName As Variant

Parameters

vtSheetName: For future use. Currently the active sheet is used.

vtMemberName: A member name. Required.

vtParentName: The member name of the parent. Required.

Return Value

Returns a variant in which -1 is true, 0 is false; otherwise, returns the appropriate error code.

Example

Declare Function HypIsParent Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtMemberName As Variant, ByVal ParentName As Variant) As Boolean

Sub Sample_HypIsParent
   Dim b as Boolean
   b = HypIsParent (Empty, "East", "Market")
End Sub