Enumerates the member IDs, labels, descriptions, and number of children of the members in a static or dynamic member list. A flag specifies which of these types of information will be returned.
You can also return members from a static member list with EnumMembers, which does not require you to pass labels or member IDs of dimension members. |
<HFMwDimension>.EnumMembers2 (varPOVScenario, varPOVYear, varPOVPeriod, varPOVEntity, varMemberlist, varTopMember, lStartingIndex, lMaxMembers, lFlagsRequestedInfo, pvaravarlMemberIDs, pvaravarlParentIDs, pvaravarbstrMemberLabels, pvaravarbstrDescriptions, pvaravarlNumChildren, pvarlTotalMembersInEnum)
The member ID or label of the Scenario dimension member. If you are returning members of a static member list, you can pass the HFMConstants type library constant MEMBERNOTUSED to this argument and to the varPOVYear, varPOVPeriod, and varPOVEntity arguments. | |
The member ID or label of the top member in the hierarchy with which to begin enumerating. To start enumerating at the top of the hierarchy, pass either -1 or an empty string. | |
The starting index (base 0) within the enumeration for retrieving member information. | |
The maximum number of members to return. To return all child members, pass 0. | |
A bitmask that specifies the type of information to return. Valid values for the bits are represented by the HFMConstants type library constants listed in Metadata Information Constants. | |
If WEBOM_METADATA_INFO_ID or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of member IDs. | |
If EnumMembers2 is called for the entity dimension, and WEBOM_METADATA_INFO_ID or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of member IDs for the parents of the list’s members. | |
If WEBOM_METADATA_INFO_LABEL or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of the labels of the list’s members. | |
If WEBOM_METADATA_INFO_DESCRIPTION or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array of the descriptions of the list’s members. | |
If WEBOM_METADATA_INFO_NUMCHILDREN or WEBOM_METADATA_INFO_ALL is included in the lFlagsRequestedInfo argument’s bitmask, this returns an array indicating the number of child members for each enumerated member. | |