Specifies the member list to display for a given dimension, as well as the top member of the list to display.
<HsvPOVSelection>.SetListInfo lDim, lListID, lListTopMemberID
Long (ByVal). The ID of the dimension. Dimension IDs are represented by the HFMConstants type library constants listed in Dimension ID Constants. | |
Long (ByVal). The member ID of the member to display. If you do not want to specify a top member, pass the HFMConstants type library constant MEMBERNOTUSED. For information on this constant, see Dimension Member Constants. |
The following subroutine displays the specified member list and top member. The subroutine takes the list name and the member label. It then uses some IHsvTreeInfo methods to get the corresponding IDs, which are passed to SetListInfo.
Sub selectList(lDim As Long, sList As String, sTopMem As String) Dim cTreeInfo As IHsvTreeInfo, lList As Long, lTopMem As Long 'g_cMetadata is a previously set HsvMetadata instance Set cTreeInfo = g_cMetadata.Dimension(lDim) cTreeInfo.GetMemberListID sList, lList lTopMem = cTreeInfo.GetItemID(sTopMem) cFormPOV.SetListInfo lDim, lList, lTopMem End Sub