Inserts data into a cell, passing the data as a String. SetTextCell also enables you to scale the data that is passed.
To insert data into a cell by passing a Double, use SetCell instead of SetTextCell. For more information, see SetCell. |
<HsvData>.SetTextCell(lScenario, lYear, lPeriod, lView, lEntity, lParent, lValue, lAccount, lICP, lCustom1, lCustom2, lCustom3, lCustom4, sScale, bstrData)
Long (ByVal). The member ID of the cell's Scenario dimension member. | |
Long (ByVal). The member ID of the cell's Year dimension member. | |
Long (ByVal). The member ID of the cell's Period dimension member. | |
Long (ByVal). The member ID of the cell's View dimension member. | |
Long (ByVal). The member ID of the cell's Entity dimension member. | |
Long (ByVal). The member ID of the parent of the lEntity argument's entity. | |
Long (ByVal). The member ID of the cell's Value dimension member. | |
Long (ByVal). The member ID of the cell's Account dimension member. | |
Long (ByVal). The member ID of the cell's Intercompany Partner dimension member. | |
Long (ByVal). The member ID of the cell's Custom 1 dimension member. | |
Long (ByVal). The member ID of the cell's Custom 2 dimension member. | |
Long (ByVal). The member ID of the cell's Custom 3 dimension member. | |
Long (ByVal). The member ID of the cell's Custom 4 dimension member. | |
Integer (ByVal). Indicates the degree of scaling to apply to the bstrData argument’s amount. To leave this amount unscaled, pass 0. To scale the amount, each whole-number increment over 0 scales by ten. In other words, passing 1 scales by ten, passing 2 scales by a hundred, and so on. To apply the application’s default scaling, pass the HFMConstants type library constant DEFAULT_SCALE, described in Number Defaults Constants. | |
Integer. Indicates the success of the function call; returns 0 for success or an error code for failure.
The following subroutine inserts data into a cell, scaling the data by ten. The cell’s dimension members and data are specified by the subroutine’s arguments.
Sub setCellDataScaledbyTen(lScen As Long, lYear As Long, lPer _ As Long, lView As Long, lEnt As Long, lPar As Long, lVal As _ Long, lAcct As Long, lICP As Long, lCust1 As Long, _ lCust2 As Long, lCust3 As Long, lCust4 As Long, _ sData As String) Dim cData As HsvData 'g_cSession is an HsvSession object reference Set cData = g_cSession.Data cData.SetTextCell lScen, lYear, lPer, lView, lEnt, lPar, _ lVal, lAcct, lICP, lCust1, lCust2, lCust3, lCust4, _ 1, sData End Sub