GetMaximumReviewLevel

Returns the value assigned to the MaximumReviewLevel attribute of a Scenario dimension member.

Syntax

<HsvScenarios>.GetMaximumReviewLevel lItemID, psMaximumReviewLevel

Argument

Description

lItemID

Long (ByVal). The member ID of the scenario.

psMaximumReviewLevel

Integer. Returns the value assigned to the MaximumReviewLevel attribute.

Example

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