Returns the period status, matching tolerance, and Match/Validate Before Post settings for a scenario, year, and period.
To return these settings for multiple periods, use GetSettingsICPeriods. |
<IHsvAdminICM>.GetSettingsICPeriod lScenario, lYear, lPeriod, psStatus, psMVBP, pdMatchTolerance
Long (ByVal). The member ID of the Scenario dimension member. | |
Integer. Returns the period’s status. Valid values are represented by the HFMConstants type library constants listed in Period Status Constants. | |
Integer. Returns the period’s Match/Validate Before Post setting. Valid values are represented by the HFMConstants type library constants listed in Match/Validate Before Post Constants. | |
Double. Returns the matching tolerance specified for the period. |
The following function takes Scenario, Year, Period, and Entity dimension member IDs and returns a Boolean that indicates whether the period’s Match/Validate Before Post setting is on.
Function isMatchValidateOn(lScen As Long, lYear As Long, lPer As Long) _ As Boolean Dim cAdminICM As IHsvAdminICM, iStat As Integer, iMatch As Integer Dim dTol As Double 'g_cSession is an HsvSession object reference Set cAdminICM = g_cSession.ICM cAdminICM.GetSettingsICPeriod lScen, lYear, lPer, iStat, iMatch, dTol If iMatch = ICM_MVBP_ON Then isMatchValidateOn = True Else isMatchValidateOn = False End If End Function