GetDefaultCurrenciesForEntities

Returns the labels of the default currencies for the specified Entity dimension members.

Syntax

<HFMwEntities>.GetDefaultCurrenciesForEntities (avarlEntityIDs)

Argument

Description

avarlEntityIDs

An array containing the member IDs of the Entity dimension members.

Input argument.

Return Value

Returns the labels of the entities’ default currencies. This array has a one-to-one correspondence with the array passed to the argument.

Example

The following function returns an array of default currencies for the specified Entity dimension members. The function takes the labels of the Entity members, using HFMwDimension.GetMemberID to obtain the member IDs passed to GetDefaultCurrenciesForEntities.

Function getEntCurrs(vaLabels)
Dim cMetadata, cEntities, cDimension, vaIDs()
'g_cSession is an HFMwSession object reference
Set cMetadata = g_cSession.metadata
Set cEntities = cMetadata.entities
Set cDimension = cEntities.dimension
Redim vaIDs(uBound(vaLabels))
For i = lBound(vaLabels) to uBound(vaLabels)
 vaIDs(i) = cDimension.GetMemberID(vaLabels(i))
Next
getEntCurrs = cEntities.GetDefaultCurrenciesForEntities(vaIDs)
End Function