Indicates whether an entity is locked or unlocked for a given scenario, period, and year.
To test whether any entities are locked or unlocked for a scenario, year, and period, use GetICEntitiesLockStatus. |
<IHsvAdminICM>.GetLockStatusICEntity(lScenario, lYear, lPeriod, lEntity)
Integer. Indicates whether the entity is locked. Valid values are represented by the HFMConstants type library constants listed in Lock Status Constants.
The following function takes Scenario, Year, Period, and Entity dimension member IDs and returns a Boolean that indicates whether the entity is locked.
Function isEntityLocked(lScen As Long, lYear As Long, lPer As Long, _ lEnt As Long) As Boolean Dim cAdminICM As IHsvAdminICM, iStatus As Integer 'g_cSession is an HsvSession object reference Set cAdminICM = g_cSession.ICM iStatus = cAdminICM.GetLockStatusICEntity(lScen, lYear, lPer, lEnt) If iStatus = ICM_LOCKED Then isEntityLocked = True Else isEntityLocked = False End If End Function