Returns the transaction status, metadata status, and calculation status of a cell. The bIncludeTransType argument enables you to exclude the transaction status from the return value.
To return additional cell status information, use GetStatusEx. |
<HsvData>.GetStatus(lScenario, lYear, lPeriod, lView, lEntity, lParent, lValue, lAccount, lICP, lCustom1, lCustom2, lCustom3, lCustom4, bIncludeTransType, plStatus)
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. | |
Boolean (ByVal). Determines whether the cell’s transaction status will be returned in the plStatus argument. Specify TRUE to return the transaction status, otherwise FALSE. | |
Long. Returns the cell’s status. For details on cell statuses, see About Cell Statuses. |
Integer. Indicates the success of the function call; returns 0 for success or an error code for failure.
The following example tests a cell’s status to determine whether the cell requires consolidation. GetStatus’s returned cell status is assigned to the lStat variable. The If statement performs a bitwise comparison to see if the cell’s status includes the calculation status for requiring consolidation, which is represented by the CELLSTATUS_NEEDSCONSOLIDATION constant. If lStat contains this status, then any code placed within the If structure would be executed. The example assumes that the variables in GetStatus’s member ID arguments were passed from another procedure.