ICPTopMember

Gets the ICPTopMember of the current Account dimension member or the specified account member. This function can be used in the these types of rules:

  • Calculation

  • Translation

  • Consolidation

  • Allocation

Syntax

HS.Account.ICPTopMember("AccountName")
HS.Account.ICPTopMember("")
HS.Account.ICPTopMember(Var1)

Note:

You can use a blank string ("") to apply this function to the current account only if you are using it in the Sub Consolidate subroutine.

Table 11-28 Syntax for ICPTopMember Function

Parameter Description

AccountName

Name of a valid Account dimension member.

Var1

A VisualBasic variable.

Return Value

A string with the name of the ICPTopMember for the account.

Example

In this example, if the ICPTopMember of the Sales account is TotalProd, then statements between the If...Then and End If statements are executed.

If HS.Account.ICPTopMember("Sales") = "TotalProd" Then
...
End If