GetTopMemberOfValidCustom2Hierarchy

Returns the member ID of the top member of an account’s Custom 2 dimension hierarchy. In other words, this method returns the member ID of the Custom 2 member that has been defined as an account’s Custom2TopMember attribute.

Syntax

<HsvAccounts>.GetTopMemberOfValidCustom2Hierarchy lItemID, plTopMember

Argument

Description

lItemID

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

plTopMember

Long. Returns the member ID of the top Custom 2 dimension member.

Example

See the Example for GetTopMemberOfValidCustom1Hierarchy, replacing that method with GetTopMemberOfValidCustom2Hierarchy.