Return an array containing the statuses of a given set of periods for the specified scenario and year.
<HFMwManageJournals>.GetPeriodStatusMultiple (bstrScenario, bstrYear, vaPeriods)
An array containing the labels of the Period dimension members. |
Returns an array of the periods’ statuses. This array has a one-to-one correspondence with the array passed to the vaPeriods argument. Valid values are represented by the HFMConstants type library constants listed in Period Status Constants.
The following function returns descriptions of the specified periods’ statuses.
Function getPerStatusStrings(sScen, sYear, vaPers) Dim vaRet vaRet = g_cHFMManageJournals.GetPeriodStatusMultiple(sScen, _ sYear, vaPers) For i = lBound(vaRet) to uBound(vaRet) Select Case vaRet(i) Case JPS_CLOSED vaRet(i) = "Closed" Case JPS_OPENED vaRet(i) = "Opened" Case JPS_UNOPENED vaRet(i) = "Unopened" End Select Next getPerStatusStrings = vaRet End Function