Returns the value assigned to the MaximumReviewLevel attribute of a Scenario dimension member.
<HsvScenarios>.GetMaximumReviewLevel lItemID, psMaximumReviewLevel
The following function takes a Scenario member’s name and returns the value assigned to the member’s MaximumReviewLevel attribute.
Function getMaxLevelFromLabel(sScenario As String) As Integer Dim cScenario As HsvScenarios, cTreeInfo As IHsvTreeInfo Dim lScenID As Long, iMax As Integer Set cScenario = m_cMetadata.Scenarios Set cTreeInfo = m_cMetadata.Scenarios lScenID = cTreeInfo.GetItemID(sScenario) cScenario.GetMaximumReviewLevel lScenID, iMax getMaxLevelFromLabel = iMax End Function