Returns the calculation status of a subcube. The subcube is identified by GetCalcStatus’s arguments. (For information on subcubes, see About Subcubes.)
<HsvData>.GetCalcStatus lScenario, lYear, lPeriod, lEntity, lParent, lValue, plCalcStatus
Long (ByVal). The member ID of the subcube's Scenario dimension member. | |
Long (ByVal). The member ID of the subcube's Year dimension member. | |
Long (ByVal). The member ID of the subcube's Period dimension member. | |
Long (ByVal). The member ID of the subcube'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 subcube's Value dimension member. | |
Long. Returns the subcube’s calculation status as a bit-field. The valid statuses that this bit-field can contain are represented by constants in the HFMConstants type library; for a list of constants, see Subcube Period Calculation Status Constants. |
The following example tests a subcube’s status to determine whether the subcube contains no data. GetCalcStatus’s returned subcube status is assigned to the lCalcStat variable. The If statement performs a bitwise comparison to see if the subcube’s status includes the calculation status code for no data, which is represented by the CALCSTATUS_NODATA constant. If lStat contains this calculation status, then any code placed within the If structure would be executed. The example assumes that the variables in GetCalcStatus’s member ID arguments were passed from another procedure.