EnumMemberLists

Returns an array that enumerates the member lists available for a dimension. A flag specifies whether names or IDs of the member lists are returned.

Syntax

<HFMwDimension>.EnumMemberLists (lFlagsRequestedInfo, pvaravarlIDs, pvaravarbstrListNames)

Argument

Description

lFlagsRequestedInfo

Specifies whether names or IDs of member lists are returned. Pass any of the following HFMConstants type library constants (for descriptions, see Metadata Information Constants):

  • WEBOM_METADATA_INFO_ID

  • WEBOM_METADATA_INFO_LABEL

  • WEBOM_METADATA_INFO_ALL

    Tip:

    You can pass more than one constant by using Or.

Input argument. Long subtype.

pvaravarlIDs

If WEBOM_METADATA_INFO_ID or WEBOM_METADATA_INFO_ALL is passed to the lFlagsRequestedInfo argument, this returns an array of the member list IDs.

Output argument.

pvaravarbstrListNames

If WEBOM_METADATA_INFO_LABEL or WEBOM_METADATA_INFO_ALL is passed to the lFlagsRequestedInfo argument, this returns an array of the member list names.

Output argument.

Return Value

Returns a count of the member lists for the dimension.

Example

The following function returns the names of the member lists for an application’s Entity dimension.

Function getEntityMemberLists()
Dim cHFMMetadata, cHFMEntities, cDimension, lCount
Dim vaIDs, vaListNames
Set cHFMMetadata = cHFMSession.metadata
Set cHFMEntities = cHFMMetadata.entities
Set cDimension = cHFMEntities.dimension
lCount = cDimension.EnumMemberLists(WEBOM_METADATA_INFO_LABEL, _ 
vaIDs, vaListNames)
getEntityMemberLists = vaListNames
End Function