Returns the labels of the default currencies for the specified Entity dimension members.
<HFMwEntities>.GetDefaultCurrenciesForEntities (avarlEntityIDs)
Returns the labels of the entities’ default currencies. This array has a one-to-one correspondence with the array passed to the argument.
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