GetCubePOVFromIndex

Returns the member IDs of a subcube’s dimension members, given the subcube’s index.

Syntax

<HsvMDDataBufferLite>.GetCubePOVFromIndex lCubeIndex, plScenario, plYear, plEntity, plParent, plValue

Argument

Description

lCubeIndex

Long (ByVal). The index of the subcube.

You can use BeginEnumeration to return the number of subcubes in an HsvMDDataBufferLite object.

plScenario

Long. Returns the member ID of the subcube’s Scenario dimension member.

plYear

Long. Returns the member ID of the subcube’s Year dimension member.

plEntity

Long. Returns the member ID of the subcube’s Entity dimension member.

plParent

Long. Returns the member ID of the plEntity argument’s parent entity.

plValue

Long. Returns the member ID of the subcube’s Value dimension member.

Example

The following example shows how to get the member IDs of the subcubes in an HsvMDDataBufferLite object. BeginEnumeration returns the number of subcubes in the object. For each subcube, GetCubePOVFromIndex returns the member IDs. To use the member IDs in the loop, replace the ellipsis (...) with code.

Dim lNumCubes As Long, lScen As Long, lYear As Long
Dim lEnt As Long, lPar As Long, lVal As Long
m_cMDBufferLite.BeginEnumeration lNumCubes
For i = 0 To lNumCubes - 1
  m_cMDBufferLite.GetCubePOVFromIndex i, lScen, lYear, lEnt, _ 
  lPar, lVal
  … 'Insert code here
Next i
m_cMDBufferLite.EndEnumeration