EnumAllMemberLabels

Returns the labels of all the members of a dimension.

Syntax

<IHsvTreeInfo>.EnumAllMemberLabels pvaralMemberLabels

Argument

Description

pvaralMemberLabels

Variant array. Returns the dimension’s member labels. The array is returned as a String subtype.

Note:

System-generated members are included in the return value.

Example

The following example adds the names of an application’s Value dimension members to a ComboBox control. The example sets an IHsvTreeInfo object reference for the Value dimension, then uses EnumAllMemberLabels to assign the Value dimension labels to the vaMemNames variable. The example then populates the combo box by looping through the array assigned to vaMemNames.

Dim cTreeInfo As IHsvTreeInfo, vaMemNames
'g_cMetadata is an HsvMetadata object reference
Set cTreeInfo = g_cMetadata.Values
cTreeInfo.EnumAllMemberLabels vaMemNames
For i = LBound(vaMemNames) To UBound(vaMemNames)
    'cmbValues is the ComboBox
    cmbValues.AddItem vaMemNames(i)
Next i