Returns the cell text descriptions of one or more cells.
GetCellDescriptions takes arrays of dimension member IDs as arguments; these arrays must contain identical numbers of elements. The elements of these arrays have a one-to-one correspondence to the elements of the array that is returned; the first elements of the member ID arrays define the first cell to be returned, the second elements of the member ID arrays define the second cell to be returned, and so on.
<HsvData>.GetCellDescriptions varlScenario, varlYear, varlPeriod, varlEntity, varlParent, varlValue, varlAccount, varlICP, varlCustom1, varlCustom2, varlCustom3, varlCustom4, pvarbstrCellText
This example places the cell text of cells into a ListBox control. The example assumes that the cells’ member ID arguments are passed from another procedure. GetCellDescriptions puts the array of cell text descriptions for the cells into the saCellText variable. The example then loops through this array, putting the array elements into the lstDesc ListBox.
Dim saCellText, iHighIndex As Integer, iLowIndex As Integer
Set m_cData = m_cSession.Data
m_cData.GetCellDescriptions laScen, laYear, laPer, laEnt, _
laPar, laVal,laAcct, laICP, laCust1, laCust2, laCust3, _
laCust4, saCellText
iHighIndex = UBound(saCellText)
For iLowIndex = LBound(saCellText) To iHighIndex
lstDesc.AddItem saCellText(iLowIndex)
Next iLowIndex
For an example of how to configure the member ID arrays passed as arguments, see the example for GetCells, which takes a similar set of arguments.