EnumDimensions

Enumerate the IDs, names, and aliases of an application’s dimensions. These items are returned in arrays, the items of which have a one-to-one correspondence with each other.

Syntax

<HFMwMetadata>.EnumDimensions pvaravarlIDs, pvaravarbstrNames, pvaravarbstrAliases

Argument

Description

pvaravarlIDs

Returns an array of IDs for the application’s dimensions. Valid values are represented by the Dimension ID constants in the HFMConstants type library. For details, see Dimension ID Constants.

Output argument.

pvaravarbstrNames

Returns an array of names for the application’s dimensions.

Output argument.

pvaravarbstrAliases

Returns an array of aliases for the application’s dimensions.

If a dimension does not have an alias, the corresponding array item will contain the dimension name.

Output argument.

Example

This example prints the names and aliases of an application’s dimensions to the browser. Note that the application name is also printed, using the HFMwSession property applicationName.

Dim cHFMMetadata, vaIDs, vaNames, vaAliases
'g_cHFMSession is an HFMwSession object reference
Set cHFMMetadata = g_cHFMSession.metadata
cHFMMetadata.EnumDimensions vaIDs, vaNames, vaAliases
Response.Write "<h1>" & g_cHFMSession.applicationName & _ 
   "Application Dimensions and Aliases</h1>"
For i = lBound(vaIDs) to uBound(vaIDs)
   Response.Write "<p><b>" & vaNames(i) & " dimension alias: " & _ 
      "</b>" & " " & vaAliases(i) & "</p>"
Next