Inserts a cell’s line items into an HsvMDDataBuffer object.
Syntax
<HsvMDDataBuffer>.SetLineItems lScenario, lYear, lPeriod, lEntity, lParent, lValue, lAccount, lICP, lCustom1, lCustom2, lCustom3, lCustom4, vbSavedAsYTD, varadData, varabstrDescriptions
Argument | Description |
---|
lScenario | Long (ByVal). The member ID of the cell’s Scenario dimension member. |
lYear | Long (ByVal). The member ID of the cell’s Year dimension member. |
lPeriod | Long (ByVal). The member ID of the cell’s Period dimension member. |
lEntity | Long (ByVal). The member ID of the cell’s Entity dimension member. |
lParent | Long (ByVal). The member ID of the lEntity argument’s parent entity. |
lValue | Long (ByVal). The member ID of the cell’s Value dimension member. |
lAccount | Long (ByVal). The member ID of the cell’s Account dimension member. |
lICP | Long (ByVal). The member ID of the cell’s Intercompany Partner dimension member. |
lCustom1 | Long (ByVal). The member ID of the cell’s Custom 1 dimension member. |
lCustom2 | Long (ByVal). The member ID of the cell’s Custom 2 dimension member. |
lCustom3 | Long (ByVal). The member ID of the cell’s Custom 3 dimension member. |
lCustom4 | Long (ByVal). The member ID of the cell’s Custom 4 dimension member. |
vbSavedAsYTD | Boolean (ByVal). Determines how the cell’s totals are saved. Pass TRUE if the cell is saved as year-to-date, FALSE if saved as periodic. |
varadData | Double array (ByVal). The cell’s line item data. |
varabstrDescriptions | String array (ByVal). The cell’s line item descriptions. |
Example
The following example loops through a Double array of data, inserting a line item for each array item. For each item, a description from an equally sized String array is also inserted.